git-svn显示外部输出解释



我有一个SVN存储库,我使用git svn clone将其克隆到Git。存储库在SVN中具有外部内容。当我使用git svn show-externals时,我会为不同的提交获得不同的外部前缀打印。打印的例子有:

/^/library/branches/binary
/^library/branches/binary
# /library/branches/test/
# /
/subproject/^/library/tip

这些前缀的含义是什么?

如官方文档中所述http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html唯一可接受的相对说明符是:

../
Relative to the URL of the directory on which the svn:externals property is set
^/
Relative to the root of the repository in which the svn:externals property is versioned
//
Relative to the scheme of the URL of the directory on which the svn:externals property is set
/
Relative to the root URL of the server on which the svn:externals property is versioned
^/../REPO-NAME
Relative to a sibling repository beneath the same SVNParentPath location as the repository in which the svn:externals is defined.

编辑

关于以#开头的那些,考虑到外部是SVN的属性,因此可以通过前缀#符号来注释它们。

最新更新