Option to strip close commits
Created originally on Bitbucket by Juga Paazmaya
Since it is possible to find "--close-commit" using commits from the history, via:
hg log --template "{if(get(extras, 'close'), '{node} is close commit\n')}"
and further get the list of files touched in that commit:
hg log --template "{if(get(extras, 'close'), '{node} closed, files {files|count}\n')}"
Would it be possible to optionally strip those commits from history when converting Mercurial to Git?
Default option would be to include them, as currently. When enabled, the close commits would be excluded and in case the given commit for some strange reason has touched any files, it would break the conversion.
The reason for considering this is to remove things that are not done in the Git world but a common practice in Mercurial. Also I came across an issue with bookmarking the last commit from each branch, which resulted all closed branches to have only a single commit in them, which was the close commit.