From: Max Pollard <ajaxsupremo@yahoo.com>
To: Sean <seanlkml@sympatico.ca>
Cc: git@vger.kernel.org
Subject: Re: Can git log <file> follow log of its origins?
Date: Tue, 29 Jan 2008 11:47:20 -0800 (PST) [thread overview]
Message-ID: <146301.84241.qm@web45914.mail.sp1.yahoo.com> (raw)
In-Reply-To: <BAYC1-PASMTP0711D909B278C305D7F28AAE350@CEZ.ICE>
--- Sean wrote:
> On Tue, 29 Jan 2008 09:48:05 -0800 (PST)
> Max Pollard wrote:
>
> > I only see the log corresponding to the 2nd commit (v1.5.3.5). Is it
> > possible to have the above command keep going and show the history of
> > a.txt? Or at least somehow indicate that b.txt originated from a.txt?
>
> Hi Max,
>
> Not sure it will leave you feeling totally satisfied but the
> following command will at least show you the copy which
> occurred in that commit:
>
> $ git log --full-diff -C --find-copies-harder --stat -- b.txt
> commit 578ecbc516e70ce7178545233192a08369a07101
> Author: xyz <x@y.z>
> Date: Tue Jan 29 13:11:16 2008 -0500
>
> Copy a.txt to b.txt
>
> a.txt => b.txt | 0
> 1 files changed, 0 insertions(+), 0 deletions(-)
>
> If you had done a rename instead of a copy, then "git log --follow b.txt"
> would have done what you're looking for, but there is no corresponding option
> to follow copies.
Many thanks for that Sean. I saw all the options in the manual, but couldn't
figure out how to put them together.
This is exactly the information I wanted. It appears to identify copies in
both text & binary files even if contents of b.txt are modified before commit
(or at least modified in ways the copy-detection logic can identify copies).
MP
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
next prev parent reply other threads:[~2008-01-29 19:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-29 17:48 Can git log <file> follow log of its origins? Max Pollard
2008-01-29 18:17 ` Sean
2008-01-29 19:47 ` Max Pollard [this message]
2008-01-29 20:03 ` Junio C Hamano
2008-01-29 21:07 ` Max Pollard
2008-01-29 21:21 ` Junio C Hamano
2008-01-29 21:40 ` Max Pollard
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=146301.84241.qm@web45914.mail.sp1.yahoo.com \
--to=ajaxsupremo@yahoo.com \
--cc=git@vger.kernel.org \
--cc=seanlkml@sympatico.ca \
/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