I prefer to merge my feature branches with --squash
as it lets me track when features were added, and it is usually complete features that I need to bisect
on. I find that this gives a very nice representation of the state of the stable branch over time.
However, when using --squash
branches merged appear under --no-merged
instead of under --merged
. This makes it sometimes difficult to keep track of the state of each branch (i.e. when it is finished). I do not want to delete the 'finished' branches as it has happened that I have had to check them out to bisect further and also other reasons (sometimes a problem requires multiple paths of attack until it is solved, and I have found it valuable to have that documented).
It there any way to either:
- Have
--merged
and--no-merged
recognise that squashed branches have in fact been merged.
or
- Archive merged (squashed) branches in the sense that they will not appear in either listing, but are still available if I need them.
I actually do prefer the second solution if possible. There are quite a few non-current branches accumulating and hiding them will make it easier to search the list for the current branch that I am looking for.