commit keeps close-branch information after commit
Created originally on Bitbucket by Anonymous
Usecase:
- open branch "y"
- commit changes to "y"
- commit close branch "y"
- merge branch to some other branch "x"
The next commit would be invoked with close-branch to branch "x" and as worst case close the default branch.