fboender / multi-git-status

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

Display currently active branch; colored if not "master" #17

Closed vbschettino closed 5 years ago

vbschettino commented 5 years ago

Show name of branch currently active alongside repo's name. If that branch is not "master", display the name in purple.

I'm not sure if this would be the preferred behaviour for most users, but it is quite helpful for me, so I thought I would share.

In any case, thanks a lot for sharing this! Very handy script.

fboender commented 5 years ago

Hey Vinicius!

Thanks for this! This is useful for me personally since nearly every project I work on works on the master branch, and now I can easily tell if I'm accidentally working on a different branch. I think you're right in saying that it might not be the preferred behaviour for most users. I know many projects that work on a "develop" branch, or on feature branches.

I looked into modifying your merge request to show when you're not on the default branch. But git has no such concept, which makes sense.

So I'm not going to merge this pull request for the official version of multi-git-status, but I'm using your patch in my own version. Thanks!