fboender / multi-git-status

Show uncommitted, untracked and unpushed changes for multiple Git repos
MIT License
470 stars 73 forks source link

Add a flag to list branches #57

Closed jonmann20 closed 1 week ago

jonmann20 commented 8 months ago

Hello, thanks for the wonderful tool.

Would be great if there were a way to list branches other than master/main (regardless of status).

e.g.

mgitstatus --branches

./foo: ok
./bar: my_stale_feature_branch_here
fboender commented 2 weeks ago

Hey Jon,

Not sure what you mean by this. Mgitstatus already shows branches other than master/main if the require any action. For example, a branch stale which has not been pushed to upstream:

./multi-git-status-test: Needs upstream (stale) 

I have just added a -b switch to show the currently checked out branch in the output:

./fboender/multi-git-status (master): Needs push (master) Uncommitted changes 
jonmann20 commented 1 week ago

Awesome, ya I think I was looking for somthing like that so I could see which repos locally were not on master. Thanks for the update and keep up the good work 💪