git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] merge-recursive: option to specify rename threshold

From
Kevin Ballard <kevin@sb.org>
Date
Sep 28, 2010, 00:01 UTC
Message-ID
<385B97D7-03F5-4698-A659-15D5D1FA939B@sb.org>
In-Reply-To
<20100927235355.GG11957@burratino>
On Sep 27, 2010, at 4:53 PM, Jonathan Nieder wrote:
Show 18 quoted lines
> Kevin Ballard wrote:
> 
>> After taking a look at this, it raises another question. -B, -M, and
>> -C all have optional arguments, but the long-form names don't seem
>> to support that.
> [...]
>>                      if I make it support `git diff
>> --rename-threshold foo` that would also work, but the name doesn't
>> seem appropriate without the argument.
> 
> Right --- with merge-recursive the argument doesn't need to be
> optional, but with git diff it does.
> 
> How about
> 
> 	--detect-renames=<threshold>
> 	--detect-copies=<threshold>
> 	--detect-rewrites=<threshold>/<threshold>
Good timing, I just sent out a patch that does almost exactly this, though I went with --break-rewrites instead of --detect-rewrites.
-Kevin Ballard
Previous: Jonathan NiederNext: Jonathan Nieder
Message 12 of 18 in “merge-recursive: option to specify rename threshold”
  1. merge-recursive: option to specify rename thresholdKevin Ballard, Sep 22, 2010
  2. merge-recursive: option to specify rename thresholdKevin Ballard, Sep 23, 2010
  3. Kevin BallardSep 23, 2010
  4. merge-recursive: option to specify rename thresholdKevin Ballard, Sep 23, 2010
  5. Junio C HamanoSep 27, 2010
  6. Kevin BallardSep 27, 2010
  7. Junio C HamanoSep 27, 2010
  8. Kevin BallardSep 27, 2010
  9. Junio C HamanoSep 27, 2010
  10. Kevin BallardSep 27, 2010
  11. Jonathan NiederSep 27, 2010
  12. Kevin BallardSep 28, 2010
  13. Jonathan NiederSep 28, 2010
  14. Kevin BallardSep 28, 2010
  15. Jonathan NiederSep 28, 2010
  16. 1/2 merge-recursive: option to specify rename thresholdKevin Ballard, Sep 27, 2010
  17. 2/2 diff: add synonyms for -M, -C, -BKevin Ballard, Sep 27, 2010
  18. Thell FowlerSep 28, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.