SubGit:使用 svn.svnCommitMessage 选项
SubGit: use svn.svnCommitMessage option
刚刚在 SubGit 3.2.4 发行说明中看到这个功能:
Support for svn.gitCommitMessage and svn.svnCommitMessage options that allow specifying message patterns used by SubGit while generating commit messages.
但是我找不到任何语法示例。
我想一次性导入,所以我想我 运行
subgit configure SVN_REPO repo.git
然后编辑 repo.git/subgit/config
并将 gitCommitMessage
添加到 svn
部分。但是我可以使用什么variables/placeholders?
以下是可以使用的占位符:
- %author = Git 作者(双向可用)
- %committer = Git 提交者(双向可用)
- %date = 修订或提交日期(双向可用)
- %message = 原始消息(双向可用)
- %note = Git 存储在 refs/notes/commits 的提交说明(在 Git => SVN 方向可用)
- %note(refs/notes/namespace) = Git 存储在 refs/notes/namespace 的提交说明(在 Git => SVN 方向可用)
- %commit = Git 提交哈希(在 Git => SVN 方向可用)
- %svnUser = Subversion 用户名(双向可用)
- %revision = Subversion 修订版,GRN 在您的符号中(在 SVN => Git 方向可用)
- %branch = Subversion 分支(双向可用)
- \n = 换行符(双向可用)
示例:
[svn]
svnCommitMessage = "%message\n\nr%revision %branch"
或
[svn]
svnCommitMessage = "%message\n%note(refs/notes/test)\n\nr%revision %branch"
抱歉这么晚回答。
现在文档中提供了信息,即:
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
刚刚在 SubGit 3.2.4 发行说明中看到这个功能:
Support for svn.gitCommitMessage and svn.svnCommitMessage options that allow specifying message patterns used by SubGit while generating commit messages.
但是我找不到任何语法示例。 我想一次性导入,所以我想我 运行
subgit configure SVN_REPO repo.git
然后编辑 repo.git/subgit/config
并将 gitCommitMessage
添加到 svn
部分。但是我可以使用什么variables/placeholders?
以下是可以使用的占位符:
- %author = Git 作者(双向可用)
- %committer = Git 提交者(双向可用)
- %date = 修订或提交日期(双向可用)
- %message = 原始消息(双向可用)
- %note = Git 存储在 refs/notes/commits 的提交说明(在 Git => SVN 方向可用)
- %note(refs/notes/namespace) = Git 存储在 refs/notes/namespace 的提交说明(在 Git => SVN 方向可用)
- %commit = Git 提交哈希(在 Git => SVN 方向可用)
- %svnUser = Subversion 用户名(双向可用)
- %revision = Subversion 修订版,GRN 在您的符号中(在 SVN => Git 方向可用)
- %branch = Subversion 分支(双向可用)
- \n = 换行符(双向可用)
示例:
[svn]
svnCommitMessage = "%message\n\nr%revision %branch"
或
[svn]
svnCommitMessage = "%message\n%note(refs/notes/test)\n\nr%revision %branch"
抱歉这么晚回答。 现在文档中提供了信息,即:
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