* how to rewalk the commit list after rename detection
@ 2008-06-23 15:38 Don Zickus
2008-06-25 19:04 ` Alex Riesen
0 siblings, 1 reply; 3+ messages in thread
From: Don Zickus @ 2008-06-23 15:38 UTC (permalink / raw)
To: git
I am trying to find a way to handle a situation where I am looking for a
change in a particular file, but the filename is old and has since been
renamed.
Processing the commit list internally (using init_revisions,
setup_revisions, get_revision), I can easily find the rename of the file,
but that is usually the start of the walk for that file (as it was just
deleted for the rename). I do not know how to re-walk the commits list
armed with the new file name.
I tried rerunning the same commands as above (init_revisions,
setup_revisions, get_revision) but that commit list is empty for some
reason (I assume the UNINTERESTING flag is never un-set??).
For example, if I have a backported patch for the upstream kernel in say
the arch/i386 directory. I want to check to see if it is upstream. I
wouldn't be able to do that because arch/i386 was renamed to arch/x86.
Unless of course the patch matches identically upstream (in which case
git-cherry works fine), but that isn't always the case (usually it is a
combination of a couple of patches).
Anyone have some thoughts if this is possible?
Cheers,
Don
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to rewalk the commit list after rename detection
2008-06-23 15:38 how to rewalk the commit list after rename detection Don Zickus
@ 2008-06-25 19:04 ` Alex Riesen
2008-06-25 20:50 ` Jakub Narebski
0 siblings, 1 reply; 3+ messages in thread
From: Alex Riesen @ 2008-06-25 19:04 UTC (permalink / raw)
To: Don Zickus; +Cc: git
Don Zickus, Mon, Jun 23, 2008 17:38:14 +0200:
> I am trying to find a way to handle a situation where I am looking for a
> change in a particular file, but the filename is old and has since been
> renamed.
>
> Processing the commit list internally (using init_revisions,
> setup_revisions, get_revision), I can easily find the rename of the file,
> but that is usually the start of the walk for that file (as it was just
> deleted for the rename). I do not know how to re-walk the commits list
> armed with the new file name.
Try looking at git log --follow <name>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to rewalk the commit list after rename detection
2008-06-25 19:04 ` Alex Riesen
@ 2008-06-25 20:50 ` Jakub Narebski
0 siblings, 0 replies; 3+ messages in thread
From: Jakub Narebski @ 2008-06-25 20:50 UTC (permalink / raw)
To: Alex Riesen; +Cc: Don Zickus, git
Alex Riesen <raa.lkml@gmail.com> writes:
> Don Zickus, Mon, Jun 23, 2008 17:38:14 +0200:
> >
> > I am trying to find a way to handle a situation where I am looking for a
> > change in a particular file, but the filename is old and has since been
> > renamed.
> >
> > Processing the commit list internally (using init_revisions,
> > setup_revisions, get_revision), I can easily find the rename of the file,
> > but that is usually the start of the walk for that file (as it was just
> > deleted for the rename). I do not know how to re-walk the commits list
> > armed with the new file name.
>
> Try looking at git log --follow <name>
Unfortunately it _almost_ works, see:
"git log --follow <filename> doesn't follow across 'subtree strategy' merge"
Message-ID: <200806221451.50624.jnareb@gmail.com>
http://permalink.gmane.org/gmane.comp.version-control.git/85766
("git log --follow gitweb/gitweb.perl follows rename from gitweb/gitweb.cgi,
but not rename (moving) from gitweb.cgi in a merge commit).
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-25 20:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-23 15:38 how to rewalk the commit list after rename detection Don Zickus
2008-06-25 19:04 ` Alex Riesen
2008-06-25 20:50 ` Jakub Narebski
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).