fabioz / mu-repo

Tool to help in dealing with multiple git repositories
http://fabioz.github.io/mu-repo/
Other
295 stars 37 forks source link

Feature: Show remotes in status #49

Open LordMike opened 6 years ago

LordMike commented 6 years ago

I'd like a way to know, if any of my repos are ahead or behind their corresponding remotes. If possible, I'd also like to know this for any other branches I may have.

I do not know the relevant git commands, apart from the fact that git status will tell me if I'm behind or ahead...

I usually run mu status and then read through the messages, but it's quite cumbersome..

Dadeerh commented 6 years ago

One suggestion is to pass "-sb" to mu status. This is a much more compact list. It doesn't help you in showing multiple branches though, but it's something.

Dadeerh commented 6 years ago

The better git command could be something along the lines of the second answer from here: https://stackoverflow.com/questions/7773939/show-git-ahead-and-behind-info-for-all-branches-including-remotes

I have a working version of mu-repo with a command added to do this atm..

LordMike commented 6 years ago

Ooh, sb is a good one. But yea, something like the for-each ref would be great.

rkhwaja commented 5 years ago

You can make a git alias called bst which runs that, then you can run mu bst and get that output

fabioz commented 2 years ago

Closing since there are no plans to implement this -- pull requests welcome ;)

fabioz commented 2 years ago

Actually, this one has a pull request for it: https://github.com/fabioz/mu-repo/pull/51

Still, the question there remains: why not just use a git alias?