mirror of
https://github.com/frej/fast-export.git
synced 2025-11-01 08:55:47 +01:00
- Allow skipping writing the branch name if the branch is 'master'. - Allow writing the branch name on the same line as the first line of the commit message separated by a colon, instead of it having its own line.
858 B
858 B
Branch Name in Commit Message
Mercurial has a much stronger notion of branches than Git, and some parties may not wish to lose the branch information during the migration to Git. You can use this plugin to either prepend or append the branch name from the mercurial commit into the commit message in Git.
Valid arguments are:
start: write the branch name at the start of the commitend: write the branch name at the end of the commitsameline: ifstartspecified, put a colon and a space after the branch name, such that the commit message readsbranch_name: first line of commit message. Otherwise, the branch name is on the first line of the commit message by itself.skipmaster: Don't write the branch name if the branch ismaster.
To use the plugin, add
--plugin branch_name_in_commit=<comma_separated_list_of_args>.