Git development
 help / color / mirror / Atom feed
* git show doesn't respect config: diff.renames=copies
@ 2008-08-06 11:43 Stephen R. van den Berg
  2008-08-06 14:06 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen R. van den Berg @ 2008-08-06 11:43 UTC (permalink / raw)
  To: git

What do I need to enter in /etc/gitconfig to get all commands that
deal with diffs of some kind to honour renames=copies ?
-- 
Sincerely,
           Stephen R. van den Berg.

If there's a hard way to do something, I'm there before anyone else.

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

* Re: git show doesn't respect config: diff.renames=copies
  2008-08-06 11:43 git show doesn't respect config: diff.renames=copies Stephen R. van den Berg
@ 2008-08-06 14:06 ` Jeff King
  2008-08-06 14:15   ` Björn Steinbrink
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2008-08-06 14:06 UTC (permalink / raw)
  To: Stephen R. van den Berg; +Cc: git

On Wed, Aug 06, 2008 at 01:43:40PM +0200, Stephen R. van den Berg wrote:

> What do I need to enter in /etc/gitconfig to get all commands that
> deal with diffs of some kind to honour renames=copies ?

$ git grep -A3 diff.renames
config.txt:diff.renames::
config.txt-     Tells git to detect renames.  If set to any boolean value, it
config.txt-     will enable basic rename detection.  If set to "copies" or
config.txt-     "copy", it will detect copies, as well.

-Peff

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

* Re: git show doesn't respect config: diff.renames=copies
  2008-08-06 14:06 ` Jeff King
@ 2008-08-06 14:15   ` Björn Steinbrink
  2008-08-06 15:25     ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Björn Steinbrink @ 2008-08-06 14:15 UTC (permalink / raw)
  To: Jeff King; +Cc: Stephen R. van den Berg, git

On 2008.08.06 10:06:03 -0400, Jeff King wrote:
> On Wed, Aug 06, 2008 at 01:43:40PM +0200, Stephen R. van den Berg wrote:
> 
> > What do I need to enter in /etc/gitconfig to get all commands that
> > deal with diffs of some kind to honour renames=copies ?
> 
> $ git grep -A3 diff.renames
> config.txt:diff.renames::
> config.txt-     Tells git to detect renames.  If set to any boolean value, it
> config.txt-     will enable basic rename detection.  If set to "copies" or
> config.txt-     "copy", it will detect copies, as well.

See subject line ;-)

Works for me though. Stephen, probably the source file didn't change in
the same commit. In such a case you need --find-copies-harder, and that
seems not to be configurable as the default.

Björn

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

* Re: git show doesn't respect config: diff.renames=copies
  2008-08-06 14:15   ` Björn Steinbrink
@ 2008-08-06 15:25     ` Jeff King
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2008-08-06 15:25 UTC (permalink / raw)
  To: Björn Steinbrink; +Cc: Stephen R. van den Berg, git

On Wed, Aug 06, 2008 at 04:15:59PM +0200, Björn Steinbrink wrote:

> > $ git grep -A3 diff.renames
> > config.txt:diff.renames::
> > config.txt-     Tells git to detect renames.  If set to any boolean value, it
> > config.txt-     will enable basic rename detection.  If set to "copies" or
> > config.txt-     "copy", it will detect copies, as well.
> 
> See subject line ;-)

Heh. Yes, oops. His question makes a lot more sense now. ;)

> Works for me though. Stephen, probably the source file didn't change in
> the same commit. In such a case you need --find-copies-harder, and that
> seems not to be configurable as the default.

I don't think it is configurable. Probably a "copiesharder" option for
diff.renames would be a sane addition.

-Peff

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

end of thread, other threads:[~2008-08-06 15:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 11:43 git show doesn't respect config: diff.renames=copies Stephen R. van den Berg
2008-08-06 14:06 ` Jeff King
2008-08-06 14:15   ` Björn Steinbrink
2008-08-06 15:25     ` Jeff King

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