gitsvnsubgit

SubGit: use svn.svnCommitMessage option


Just seen this feature in the SubGit 3.2.4 release notes:

Support for svn.gitCommitMessage and svn.svnCommitMessage options that allow specifying message patterns used by SubGit while generating commit messages.

But i cannot find any example on the syntax. I want to do a one time import, so i guess i run

subgit configure SVN_REPO repo.git

then edit repo.git/subgit/config and add gitCommitMessage to the svn section. But what are the variables/placeholders i can use?


Solution

  • Here are the placeholders that can be used:

    Examples:

    [svn]
    svnCommitMessage = "%message\n\nr%revision %branch"
    

    or

    [svn]
    svnCommitMessage = "%message\n%note(refs/notes/test)\n\nr%revision %branch"