3 ms·
This is pretty cool. Looks like it's local to the current repo which makes sense for most usage. Having something like this across a swathe of repos would be us
by koolba 10y ago
This is pretty cool. Looks like it's local to the current repo which makes sense for most usage. Having something like this across a swathe of repos would be useful in different ways (ex: "What has Bob committed over all the repos for our projects that involves the string 'billing'?".
Minor off topic rant about the animated example: Who doesn't put a space at the end of their prompt after the $?! Ugh!
- OJFord 10y ago> Who doesn't put a space at the end of their prompt after the $?! Ugh! I've always had mixed feelings about that. Resolved it now, by using '>', no space, which doesn't look cluttered since there's only ~1px right next to the first char entered.
- iagooar 10y agoI agree. Since we work with microservices, we have +10 repo per project. Would be nice to be able to scan through all of them.
- OJFord 10y agoYou could submodule them all in an otherwise empty parent repo. Bit of a hack, but could come in handy for other things (off the top of my head: "welcome to the team! Clone this one thing, it contains everything you need.").
- nothrabannosir 10y agoPlug: if you ever find yourself wanting to merge everything painlessly: https://github.com/unravelin/tomono https://github.com/unravelin/tomono :) accompanying blog post: https://syslog.ravelin.com/multi-to-mono-repository-c81d004df3ce https://syslog.ravelin.com/multi-to-mono-repository-c81d004d...
- icefox 10y agoGit map would work for many cases https://github.com/icefox/git-map https://github.com/icefox/git-map Git map ql ...
- koolba 10y agoNice. I can see a need for this as a lot of my projects are structured like that (multiple sibling repos). Running 'git map log --grep ...' seems particularly useful. Quick eyeballing of the source, it does not handle whitespace in directory names properly. The for loop would treat them as separate, invalid, entries. Of course I'd also fire someone on the spot that commits a project directory with whitespace in it...
- icefox 10y agoGood point, switched it to a while loop.
- SomethingOrNot 10y agoSomething seemingly related is Myrepos [1], for doing stuff like "update all these repos". Probably more capable, and complicated to use. It's also "vcs agnostic". [1]: https://myrepos.branchable.com/ https://myrepos.branchable.com/
- somebehemoth 10y agoThank you for suggesting git-map. I tried it and intend to include it into my workflow. I thought your suggestion was a good one so I tested it. It did not work for me due to: "dyld: Library not loaded: libgit2.21.dylib". I assume this is something about my setup (mac, zsh, other stuff) but if you got this working I'd like to know so I can keep trying my with my setup. To clarify: both git-map and gitql work for me, I just can't seem to combine them.
- icefox 10y agogit map is just a 8 line bash script so perhaps checking if paths are setup correctly for bash to point to your git binaries if you use zsh most of the time.
- matheusd 10y agoSeconded on a multirepo tool for that. I have a big "projects" folder with lots of different repos. I'd like to know all commits I've made on the past month, across all projects. Currently I have a post-commit hook which sends the one line shortlog to a common file, but would be nicer to have a tool for ad-hoc queries.