刚刚在SubGit 3.2.4发行说明中看到了这个功能:
支持svn.gitCommitMessage和svn.svnCommitMessage选项,允许在生成提交消息时指定SubGit使用的消息模式。
但我找不到任何关于语法的例子。 我想做一次导入,所以我想我跑
subgit configure SVN_REPO repo.git
然后修改repo.git/subgit/config
并将gitCommitMessage
添加到svn
部分。但是我可以使用哪些变量/占位符?
答案 0 :(得分:2)
以下是可以使用的占位符:
示例:
[svn]
svnCommitMessage = "%message\n\nr%revision %branch"
或
[svn]
svnCommitMessage = "%message\n%note(refs/notes/test)\n\nr%revision %branch"
答案 1 :(得分:1)
svnCommitMessage选项说明:
https://subgit.com/config-options.html#svn.svnCommitMessage
可用的占位符:
%author = Git author
%committer = Git committer
%date = Git commit date
%message = original message
%note = Git commit note stored under refs/notes/commits
%note(refs/notes/namespace) = Git commit note stored under
refs/notes/namespace
%commit = Git commit hash
%svnUser = Subversion username
%branch = Subversion branch
\n = newline feed
gitCommitMessage选项说明:
https://subgit.com/config-options.html#svn.gitCommitMessage
支持的占位符:
%author = Git author
%committer = Git committer
%date = date of revision
%message = original message
%svnUser = Subversion username
%revision = Subversion revision, GRN in your notation
%branch = Subversion branch
\n = newline feed