刚刚在SubGit 3.2.4发行说明中看到了这个特性:
支持svn.gitCommitMessage和svn.svnCommitMessage选项,这些选项允许在生成提交消息时指定SubGit使用的消息模式。
但我在语法上找不到任何例子。我想做一次导入,所以我想我要运行
subgit configure SVN_REPO repo.git然后编辑repo.git/subgit/config并将gitCommitMessage添加到svn部分。但是,我可以使用哪些变量/占位符?
发布于 2017-04-06 05:48:59
以下是可以使用的占位符:
示例:
[svn]
svnCommitMessage = "%message\n\nr%revision %branch"或
[svn]
svnCommitMessage = "%message\n%note(refs/notes/test)\n\nr%revision %branch"发布于 2017-12-04 10:06:10
很抱歉这么晚才回答。现在,这些资料可在文件中查阅,即:
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 feedgitCommitMessage选项描述:
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 feedhttps://stackoverflow.com/questions/43227319
复制相似问题