git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG:git-log --follow <path> should never trim output WRT equivalent git-log <path>
@ 2008-03-24 16:19 Santiago Gala
  2008-03-25  1:45 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Santiago Gala @ 2008-03-24 16:19 UTC (permalink / raw)
  To: git

I tried this on today's git.git repository, as a suggestion for following moves:

$ git log  -M -C -C --color --stat --follow -- gitk-git/po/de.po | wc -l
0
sgala@marlow ~/newcode/git/git (master)$ git log  -M -C -C --color --stat --
gitk-git/po/de.po | wc -l
31
$ git --version
git version 1.5.4.4

I find very strange that --follow makes git log to stop outputting the first
entries.

Regards
Santiago

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG:git-log --follow <path> should never trim output WRT equivalent git-log <path>
  2008-03-24 16:19 BUG:git-log --follow <path> should never trim output WRT equivalent git-log <path> Santiago Gala
@ 2008-03-25  1:45 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2008-03-25  1:45 UTC (permalink / raw)
  To: Santiago Gala; +Cc: git

On Mon, Mar 24, 2008 at 04:19:01PM +0000, Santiago Gala wrote:

> $ git log  -M -C -C --color --stat --follow -- gitk-git/po/de.po | wc -l
> 0
> sgala@marlow ~/newcode/git/git (master)$ git log  -M -C -C --color --stat --
> gitk-git/po/de.po | wc -l
> 31
> $ git --version
> git version 1.5.4.4
> 
> I find very strange that --follow makes git log to stop outputting the first
> entries.

I think the tricky thing here is that every one of those commits is a
merge, which doesn't actually "introduce" any content, and that probably
confuses the "--follow" code.

The thing is that getting the history of gitk-git specifically is a bit
tricky. All of the commits actually happen to, e.g., the file 'gitk' in
the main gitk repository, and then Junio merges it into git using a
special "subtree" merge as 'gitk-git/gitk'. So looking at a path in
'gitk-git' will always just turn up merge commits; the actual commits
took place on a different path.

But I haven't looked too closely at what's going on, so I may be way off
base. My two cents.

-Peff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-25  1:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-24 16:19 BUG:git-log --follow <path> should never trim output WRT equivalent git-log <path> Santiago Gala
2008-03-25  1:45 ` Jeff King

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).