Re: file rename causes history to disappear

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff Garzik <jeff@...>
Cc: Git Mailing List <git@...>
Date: Wednesday, September 6, 2006 - 11:38 am

On Wed, 6 Sep 2006, Jeff Garzik wrote:

For filenames that don't exist right now, you need to clearly separate the 
revision name from the filename (ie you need to use "--").

There were patches to do "--follow-rename" which I don't think got applied 
yet, but in the meantime, just do

	git whatchanged -M -- drivers/ata/filename.c drivers/scsi/filename.c

where the "-M" means "show diffs as renames if possible" (which is 
different from having the history actually _follow_ them), and the "--" is 
the filename separator to tell git that the nonexistent 
"drivers/ata/filename.c" file isn't a (currently) nonexistent revision 
name, it's a (currently) nonexistent _filename_.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
file rename causes history to disappear, Jeff Garzik, (Wed Sep 6, 10:52 am)
Re: file rename causes history to disappear, Linus Torvalds, (Wed Sep 6, 11:38 am)
Re: file rename causes history to disappear, Jeff Garzik, (Wed Sep 6, 11:46 am)
Re: file rename causes history to disappear, Linus Torvalds, (Wed Sep 6, 12:14 pm)
Re: file rename causes history to disappear, Linus Torvalds, (Wed Sep 6, 12:37 pm)
Re: file rename causes history to disappear, Junio C Hamano, (Wed Sep 6, 3:29 pm)
Re: file rename causes history to disappear, Alex Riesen, (Thu Sep 7, 6:16 am)
Re: file rename causes history to disappear, Randal L. Schwartz, (Wed Sep 6, 5:45 pm)
Re: file rename causes history to disappear, Junio C Hamano, (Wed Sep 6, 8:52 pm)
Re: file rename causes history to disappear, Timo Hirvonen, (Wed Sep 6, 11:05 am)