git submodule与subtree现在那个用得多?

25 views
Skip to first unread message

Beckheng Lam

unread,
Feb 3, 2015, 10:20:31 PM2/3/15
to perl...@googlegroups.com
Hi All,
RT.
一直没有用过。
请用过的童鞋科普下。:)

Hao Wu

unread,
Feb 3, 2015, 10:45:24 PM2/3/15
to perl...@googlegroups.com
没用过subtree(第一次听说),一直用submodule,

搜索了一下,


原文作者认为subtree可以接受的缺点:

In my opinion the drawbacks are acceptable:

  • You must learn about a new merge strategy (i.e. subtree).
  • Contributing code back upstream for the sub-projects is slightly more complicated.
  • The responsibility of not mixing super and sub-project code in commits lies with you.
2,3 对我来说有点不可接受。

submodule 是独立的一个repo,每次更新了submodule,

只要到再到主repo 的根目录,commit 一下就好了(更新一下在主repo 中的hash)

我觉得没法再简单了。







--
您收到此邮件是因为您订阅了Google网上论坛上的“PerlChina Mongers 讨论组”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到perlchina+...@googlegroups.com
要发帖到此群组,请发送电子邮件至perl...@googlegroups.com
访问此群组:http://groups.google.com/group/perlchina
要查看更多选项,请访问https://groups.google.com/d/optout

Reply all
Reply to author
Forward
0 new messages