* git-svn: What is --follow-parent / --no-follow-parent for?
@ 2012-11-20 7:31 Sebastian Leske
2012-11-28 10:18 ` Steven Michalske
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Sebastian Leske @ 2012-11-20 7:31 UTC (permalink / raw)
To: git
Hi,
on reading the docs of "git-svn", I stumbled across this paragraph:
> --follow-parent
> This is especially helpful when we’re tracking a directory that has been
> moved around within the repository, or if we started tracking a branch
> and never tracked the trunk it was descended from. This feature is
> enabled by default, use --no-follow-parent to disable it.
However, this does not make sense to me: This sounds like there is no
good reason *not* to enable this option. So why is it there? And in
what situation might I want to use "--no-follow-parent"?
As a matter of fact, I'm not even sure what "--no-follow-parent" does
(and the docs don't really say).
I tried it out with a small test repo with a single branch (produced by
copying the trunk, then later deleted). With --follow-parent git-svn
correctly detected the branch point, and modeled the branch deletion as
a merge. With --no-follow-parent it just acted as if branch and trunk
were completely unrelated.
Commit graph of git-svn result:
--follow-parent: --no-follow-parent:
| |
/| | |
/ | | |
| | | |
| | | |
| | | |
\ | | |
\| | |
| |
(please excuse cheap ASCII art)
Is that the only effect of --no-follow-parent? And again, why would I
want that?
I'd be grateful for any clarifications. If I manage to understand the
explanation, I'll volunteer to summarize it into doc patch (if there are
no objections).
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-svn: What is --follow-parent / --no-follow-parent for?
2012-11-20 7:31 git-svn: What is --follow-parent / --no-follow-parent for? Sebastian Leske
@ 2012-11-28 10:18 ` Steven Michalske
2012-11-28 21:20 ` Eric Wong
2012-11-28 23:59 ` Sebastian Leske
2 siblings, 0 replies; 4+ messages in thread
From: Steven Michalske @ 2012-11-28 10:18 UTC (permalink / raw)
To: Sebastian Leske; +Cc: git
On Nov 19, 2012, at 11:31 PM, Sebastian Leske <Sebastian.Leske@sleske.name> wrote:
>
> Commit graph of git-svn result:
>
> --follow-parent: --no-follow-parent:
>
>
> | |
> /| | |
> / | | |
> | | | |
> | | | |
> | | | |
> \ | | |
> \| | |
> | |
>
>
> (please excuse cheap ASCII art)
>
> Is that the only effect of --no-follow-parent? And again, why would I
> want that?
I suppose that you would want this for a SVN repo that holds many different and possibly loosely related projects.
The you can apply git filter branch then to split them up cleanly.
e.g. Imagine that the two root commits of the branches do not have true common history.
Steve
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-svn: What is --follow-parent / --no-follow-parent for?
2012-11-20 7:31 git-svn: What is --follow-parent / --no-follow-parent for? Sebastian Leske
2012-11-28 10:18 ` Steven Michalske
@ 2012-11-28 21:20 ` Eric Wong
2012-11-28 23:59 ` Sebastian Leske
2 siblings, 0 replies; 4+ messages in thread
From: Eric Wong @ 2012-11-28 21:20 UTC (permalink / raw)
To: Sebastian Leske; +Cc: git
Sebastian Leske <Sebastian.Leske@sleske.name> wrote:
> However, this does not make sense to me: This sounds like there is no
> good reason *not* to enable this option. So why is it there? And in
> what situation might I want to use "--no-follow-parent"?
Speed. Following long/convoluted histories can take a long time.
Sometimes the user doesn't care about ancient history.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: git-svn: What is --follow-parent / --no-follow-parent for?
2012-11-20 7:31 git-svn: What is --follow-parent / --no-follow-parent for? Sebastian Leske
2012-11-28 10:18 ` Steven Michalske
2012-11-28 21:20 ` Eric Wong
@ 2012-11-28 23:59 ` Sebastian Leske
2 siblings, 0 replies; 4+ messages in thread
From: Sebastian Leske @ 2012-11-28 23:59 UTC (permalink / raw)
To: git
Hi Steven, hi Eric,
thanks for your explanations. I'll try to update my doc patch to include
them.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-11-29 0:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-20 7:31 git-svn: What is --follow-parent / --no-follow-parent for? Sebastian Leske
2012-11-28 10:18 ` Steven Michalske
2012-11-28 21:20 ` Eric Wong
2012-11-28 23:59 ` Sebastian Leske
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).