Re: possible 'git cp'/how does git detect copies

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mircea Bardac
Date: Friday, June 27, 2008 - 6:16 am

Hi,

Santi Béjar wrote:

I knew this from before but for some reason I forgot about it when I 
tried it now. The documentation for "git diff -C" is a bit misleading. I 
have originally tested on git 1.5.2.something and the documentation for 
-C didn't point to --find-copies-harder. I've quickly installed 1.5.6.1 
to test the behavior but not the man pages.

Looking over the online docs for 1.5.6.1, it appears that there is now a 
reference to --find-copies-harder.

Even so, saying just that "Detect copies as well as renames." is not 
enough, as it assumes that there is no restriction on the detection process.

 From --find-copies-harder
"For performance reasons, by default, -C option finds copies only if the 
original file of the copy was modified in the same changeset." should be 
moved to -C.


Ah, duplicating the parameter. Looking better over these options I have 
noticed that --find-copies-harder for "git diff" can also be replaced 
with an extra -C. A little bit of consistency would help: either
"-C -C", either "--find-copies-harder" in both git blame/diff. Removing 
from the documentation the deprecated version but keeping the 
implementation for backwards compatibility might be a solution.


Many thanks,
Mircea

P.S. I know that patches are encouraged and technically it's pretty 
simple to create a documentation patch, but I have not yet formed myself 
a workflow for sending patches via Git to a maillist (this is a pending 
task for me)

--
http://mircea.bardac.net
--
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:
possible 'git cp'/how does git detect copies, Mircea Bardac, (Fri Jun 27, 5:40 am)
Re: possible 'git cp'/how does git detect copies, Santi Béjar, (Fri Jun 27, 5:57 am)
Re: possible 'git cp'/how does git detect copies, Pierre Habouzit, (Fri Jun 27, 6:00 am)
Re: possible 'git cp'/how does git detect copies, Johannes Sixt, (Fri Jun 27, 6:05 am)
Re: possible 'git cp'/how does git detect copies, Miklos Vajna, (Fri Jun 27, 6:09 am)
Re: possible 'git cp'/how does git detect copies, Mircea Bardac, (Fri Jun 27, 6:16 am)