6 ms·
Git map would work for many cases https://github.com/icefox/git-map https://github.com/icefox/git-map Git map ql ...
by icefox 10y ago
Git 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.