I have 3 standard remotes for a the main repository I work in currently: a local backup, my development partner's workstation, and a hosted repository. We have 3 or 4 branches that are active most of the time, one being master.
I monitor the branches on a regular basis throughout the day using:
git log --graph --oneline --decorate -15 my-branch his-repo/his-branch master other-branch
--decorate
is crucial because it lets me know the state of things in regards to our very volatile development branches. The problem is that I see all of the remote refs and all of the branches, tags, etc. in the decoration.
Is there any way to limit --decorate
to only output certain refs? Listing the refs on the command line only limits the commits shown, not the refs shown.
Thanks, Mike
refs
isn't a bad idea except that I also have to take into accountpacked-refs
. Though perhaps once I wrote the script it would find other uses... Then again, a hard-coded script to renamerefs
andpacked-refs
and insert a simplepacked-refs
file with the correct hashes might be fairly straight-forward. The biggest danger I see in this is any other processes that might be accessing the repo (IDEs, etc.). – Carat