在git svn clone中使用--no-metadata有没有好处? [英] Is there an advantage to using --no-metadata in git svn clone?

查看:217
本文介绍了在git svn clone中使用--no-metadata有没有好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 git svn clone 从SVN存储库到Git存储库进行单向转换。大多数例子都是通过 - no-metadata 标志来做到这一点 - 使用这个标志有什么优势吗?



我知道该标志删除了SVN修订号。我可以想到为什么保持这些原因可能有用的原因(例如回头提到bug跟踪软件中提到的特定提交)。



使用 - no-metadata 标志的参数的含义是什么?除了打破所有关系之外,还有什么好处? 实际上并不推荐:


不推荐使用此选项,因为它很难追踪现有文档中的
旧SVN修订版本引用,bug
报告和档案。如果你打算最终从SVN迁移到
git并确定要删除SVN历史,请考虑使用
git-filter-branch(1)。 filter-branch还允许重新格式化
的元数据,以方便阅读和重写
非svn.authorsFile用户的作者信息。



I'm doing a one-way convert from an SVN repository to a Git repository using git svn clone. Most examples do this with the --no-metadata flag - is there an advantage to using this flag?

I understand that the flag removes the SVN revision numbers. I can think of reasons why it may be useful to keep these around (such as referring back to specific commits mentioned in bug tracking software).

What are the arguments for using the --no-metadata flag? Is there any benefit other than a sensation of breaking all ties?

解决方案

It is actually not recommended:

This option is NOT recommended as it makes it difficult to track down old references to SVN revision numbers in existing documentation, bug reports and archives. If you plan to eventually migrate from SVN to git and are certain about dropping SVN history, consider git-filter-branch(1) instead. filter-branch also allows reformatting of metadata for ease-of-reading and rewriting authorship info for non-"svn.authorsFile" users.

这篇关于在git svn clone中使用--no-metadata有没有好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆