All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Suder <jakub.suder@gmail.com>
To: Avery Pennarun <apenwarr@gmail.com>
Cc: Marc Fournier <marc.fournier@camptocamp.com>, git@vger.kernel.org
Subject: Re: git-subtree.sh - regression introduced by da949cc55
Date: Sat, 13 Feb 2010 20:41:08 +0100	[thread overview]
Message-ID: <508e1531002131141o32fdc555keb31a3d8b05d7109@mail.gmail.com> (raw)
In-Reply-To: <32541b131002120952gcb5116as730fff8bdcf005c1@mail.gmail.com>

On Fri, Feb 12, 2010 at 18:52, Avery Pennarun <apenwarr@gmail.com> wrote:
> Did you have a chance to look at this?

It's true, when you try to extract a subproject from an ordinary
directory of a project, using git subtree split, it builds the new
branch on top of some past commit, instead of as a completely separate
timeline, and it's exactly because of my change. The problem lies in
what you wrote in the comment above that fragment: "ugly.  is there no
better way to tell if this is a subtree vs. a mainline commit?  Does
it matter?" - well, apparently it does matter :) That line fixed my
problem, because commits in the subproject's timeline should have
cache set to themselves, but it the case when you start from the other
side (first subtree split, not first subtree add), in this fragment
the first commits from the mainline (which are unrelated to the
subdirectory) are regarded as subtree commits, because $tree is empty
(but not because the root directory is different, only because it just
didn't exist yet at this point).

We just need some different way of determining if this is a commit
from subtree timeline or the main timeline - I'll see if I can come up
with something...

JS

  reply	other threads:[~2010-02-13 19:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-11 13:08 git-subtree.sh - regression introduced by da949cc55 Marc Fournier
2010-02-11 13:26 ` Jakub Suder
2010-02-12 17:52   ` Avery Pennarun
2010-02-13 19:41     ` Jakub Suder [this message]
2010-02-13 19:49       ` Avery Pennarun

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=508e1531002131141o32fdc555keb31a3d8b05d7109@mail.gmail.com \
    --to=jakub.suder@gmail.com \
    --cc=apenwarr@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=marc.fournier@camptocamp.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.