Git development
 help / color / mirror / Atom feed
* blame on a deleted/renamed file
@ 2009-08-05 12:16 Dan McGee
  2009-08-05 12:37 ` Björn Steinbrink
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Dan McGee @ 2009-08-05 12:16 UTC (permalink / raw)
  To: git

Is there no easy way in git to get a blame on a file that has either
been renamed or deleted? I'll step through my thought process, and a
quick google and read of the manpage returned nothing obvious. Here is
the repository in question if it matters:
git://projects.archlinux.org/pacman.git. I located a particular commit
I was interested using a plain git-blame:
$ git blame scripts/makepkg.sh.in

OK, looks like lines moved around enough that we got stuck here, let's
see what this patch did:
$ git show e19d7da4

OK, it did a move of a bunch of lines into functions that GIT couldn't
quite track:
$ git annotate --follow "scripts/makepkg.in" e19d7da4~1
fatal: cannot stat path 'scripts/makepkg.in': No such file or directory

$ git annotate --follow "scripts/makepkg.sh.in" e19d7da4~1
fatal: no such path scripts/makepkg.sh.in in e19d7da4~1

Help? Or do I need to think about writing some sort of patch for it?
This is the first thing I have seen svn be able to do[1] that git
can't. :)

-Dan

[1] svn annotate http://path/to/repo/path/to/file@2345

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

end of thread, other threads:[~2009-08-05 17:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05 12:16 blame on a deleted/renamed file Dan McGee
2009-08-05 12:37 ` Björn Steinbrink
2009-08-05 12:54   ` Matthieu Moy
2009-08-05 13:54   ` Dan McGee
2009-08-05 14:09     ` Björn Steinbrink
     [not found]       ` <449c10960908050849pa4df6c6x3f5aa4510e9a2642@mail.gmail.com>
2009-08-05 16:56         ` Björn Steinbrink
2009-08-05 13:24 ` Thomas Rast
2009-08-05 17:25 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox