From: Yann Dirson <dirson@bertin.fr>
To: Avery Pennarun <apenwarr@gmail.com>
Cc: Yann Dirson <dirson@bertin.fr>, git@vger.kernel.org
Subject: Re: git-subtree: bug, and ideas for doc improvements
Date: Mon, 13 Sep 2010 14:51:18 +0200 [thread overview]
Message-ID: <20100913145118.20469cda@chalon.bertin.fr> (raw)
In-Reply-To: <20100913135705.36f8217b@chalon.bertin.fr>
Well, things finally seem even more complicated: in my case, the tree
is a bit more particular than what I originally thought:
* I finally understand I read the --onto description wrong. It could
surely be made easier to understand, by telling the user he first
has to import the subproject history into the superproject repo
first. Adding an example of this would be of great use too.
* In my case the directory in which the kernel was originally located
has since then been renamed, and git-subtree stops exploring the
history at the rename commit, assuming the full import occured there.
Maybe git-subtree can be taught to follow renames, but currently the
way to handle that would seem to split in 2 steps:
- checkout the revision before the move
- split that part of history using the old name (without
--rejoin, and with a different --branch name than intended in
the end)
- checkout the head to be split
- split the remaining part, passing --onto the branch name that was
passed to --branch in the first run
However, if I try that, the root of the second split has no parent.
I can use a graft and filter-branch - but there is either something
else I did not understood incorrectly, or maybe a bug somewhere ?
Best regards,
--
Yann Dirson - Bertin Technologies
prev parent reply other threads:[~2010-09-13 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-13 11:57 git-subtree: bug, and ideas for doc improvements Yann Dirson
2010-09-13 12:51 ` Yann Dirson [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=20100913145118.20469cda@chalon.bertin.fr \
--to=dirson@bertin.fr \
--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).