From: Junio C Hamano <gitster@pobox.com>
To: Sean <seanlkml@sympatico.ca>
Cc: David Soria Parra <sn_@gmx.net>, git@vger.kernel.org
Subject: Re: how to use git merge -s subtree?
Date: Mon, 07 Jan 2008 22:57:53 -0800 [thread overview]
Message-ID: <7vir24x0r2.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <BAYC1-PASMTP152065390CFAF8C09F0B60AE480@CEZ.ICE> (seanlkml@sympatico.ca's message of "Tue, 8 Jan 2008 00:34:55 -0500")
Sean <seanlkml@sympatico.ca> writes:
> In the case of the "--follow" option though, the user might be forgiven
> for thinking in terms of files rather than paths. Even the git-log
> documentation says for "--follow", "Continue listing the history of a
> file beyond renames". Which at least implies that Git knows about
> file history, rather than just paths.
But you know git does not know nor care about "file" history.
And the thing is, I just tried this:
$ git log --follow --pretty=short --stat gitk-git/gitk | head -n 20
commit 62ba5143ec2ab9d4083669b1b1679355e7639cd5
Author: Junio C Hamano <gitster@pobox.com>
Move gitk to its own subdirectory
gitk => gitk-git/gitk | 0
1 files changed, 0 insertions(+), 0 deletions(-)
commit 7388bcbc5431552718dde5c3259d861d2fa75a12
Author: Paul Mackerras <paulus@samba.org>
gitk: Use the UI font for the diff/old version/new version radio buttons
gitk | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
commit cca5d946d692fde7ea5408a694cb4b1c97a5a838
Author: Paul Mackerras <paulus@samba.org>
gitk: Simplify the code for finding commits
So there is something else going on, if David actually tried to
follow "B/foo" that was subtree-merged from a parent that had it
at toplevel "foo" and "log --follow" did not work for him.
Two things that come to mind offhand are that (1) --follow looks
for a path that has similar contents elsewhere only when the
path it is following in the child disappears in the parent. So
if you start from B/foo that was subtree-merged (i.e. the other
parent has foo at the top) into a parent that already had B/foo,
it will not follow the other parent that does not have B/foo;
(2) I do not know if the original example by David tried to use
"-n $count" offhand, but it seems that currently --follow does
not play well with -n (try the above gitk-git/gitk without
piping the result into "head -n 20" but instead by limiting with
"git log -3 --follow ..."); if that is the case that definitely
is a bug.
next prev parent reply other threads:[~2008-01-08 6:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-05 23:00 how to use git merge -s subtree? Miklos Vajna
2008-01-06 1:17 ` Sean
2008-01-06 1:22 ` David Soria Parra
2008-01-06 2:13 ` Sean
2008-01-06 2:28 ` David Soria Parra
2008-01-06 2:42 ` Junio C Hamano
2008-01-06 8:06 ` Sean
2008-01-07 21:04 ` Junio C Hamano
2008-01-08 5:34 ` Sean
2008-01-08 6:57 ` Junio C Hamano [this message]
2008-01-06 3:45 ` Miklos Vajna
2008-01-06 1:20 ` David Soria Parra
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=7vir24x0r2.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=seanlkml@sympatico.ca \
--cc=sn_@gmx.net \
/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.