git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sitaram Chamarty <sitaramc@gmail.com>
To: Avery Pennarun <apenwarr@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [git subtree] documentation and new --squash mode
Date: Mon, 1 Jun 2009 06:39:56 +0530	[thread overview]
Message-ID: <2e24e5b90905311809h751eff3en7f5a87f1e5a6ab03@mail.gmail.com> (raw)
In-Reply-To: <32541b130905310942x3ca98b0ibbed8598f4ba6e56@mail.gmail.com>

On Sun, May 31, 2009 at 10:12 PM, Avery Pennarun <apenwarr@gmail.com> wrote:
>
> On Sun, May 31, 2009 at 3:12 AM, Sitaram Chamarty <sitaramc@gmail.com> wrote:
> > As I understand the documentation (and past emails, snippets
> > of IRC traffic, etc) git subtree will help me do precisely
> > what I want -- a simple way to deal with this all-too-common
> > SVN-ism.  If not "simple", at least
> >
> >  - simpler than submodules, and
> >
> >  - no need for advance planning [1] about what parts will
> >    be subprojects.
>
> Well, I don't know that I'd go so far as to advise against advance
> planning :)  But git subtree does make it easy for you to change your
> mind later, that much is true.

Agreed, and that's good enough for me.

> You might still have some troubles if you rename subdirectories a lot;
> perhaps I don't understand it correctly, but the so-called file
> move/rename detection in git doesn't seem to be implemented
> everywhere. If you extract the history of a subdirectory that was
> previously renamed, you'll get only the history since it was renamed.
> (Which might be fine with you.  You can certainly still merge it back
> in afterwards.)

Did not know this; thanks -- will keep an eye out.

> Also, git-subtree might have bugs yet.  Watch out for that :)

:)

> git-subtree is certainly easier to use than filter-branch, IMHO.  Plus
> it helps you merge things back in afterwards, which filter-branch
> doesn't particularly.

All in all it does look like it will fulfill my purposes.  I will
probably use it myself a bit before telling people to use it of
course.

Thanks,

Sitaram

      reply	other threads:[~2009-06-01  1:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-30 18:36 [git subtree] documentation and new --squash mode Avery Pennarun
2009-05-31  7:12 ` Sitaram Chamarty
2009-05-31 16:42   ` Avery Pennarun
2009-06-01  1:09     ` Sitaram Chamarty [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2e24e5b90905311809h751eff3en7f5a87f1e5a6ab03@mail.gmail.com \
    --to=sitaramc@gmail.com \
    --cc=apenwarr@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).