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

Re: [PATCH 1/2] [RFC] Use --find- instead of --detect- as prefix for long forms of -M and -C.

From
YDYann Dirson <ydirson@free.fr>
Date
Nov 12, 2010, 07:43 UTC
Message-ID
<20101112074312.GG8911@home.lan>
In-Reply-To
<7884E3F5-D622-49E2-BEBE-12936F388C30@sb.org>
On Thu, Nov 11, 2010 at 07:00:05PM -0800, Kevin Ballard wrote:
Show 23 quoted lines
> On Nov 10, 2010, at 12:27 PM, Yann Dirson wrote:
> 
> > -M[<n>]::
> > ---detect-renames[=<n>]::
> > +--find-renames[=<n>]::
> > ifndef::git-log[]
> > 	Detect renames.
> > endif::git-log[]
> > @@ -246,7 +246,7 @@ endif::git-log[]
> > 	hasn't changed.
> > 
> > -C[<n>]::
> > ---detect-copies[=<n>]::
> > +--find-copies[=<n>]::
> > 	Detect copies as well as renames.  See also `--find-copies-harder`.
> > 	If `n` is specified, it has the same meaning as for `-M<n>`.
> 
> I'm not sure I like the wording --find-copies and --find-renames. Maybe I'm
> just being silly, but it sounds like those are directives, saying "I want you
> to find copies/renames", as opposed to just saying "while you're working you
> should also detect copies/renames". The original flag --find-copies-harder
> is a bit different, because it's modifying the action of finding copies
> rather than making finding copies the prime directive.

Well, I don't see how --find-copies-harder is much different: it is just a more powerful version of -C, as seen by the fact that it implies -C.

> On the other hand, --detect-copies and --detect-renames sounds to me like
> you're just telling it that it should, well, detect copies/renames as it goes
> about its business.

I can understand this. However, I feel that the fact they are just options, as opposed to the explicit "diff/show/whatever" commands that take them as modifiers, would be enough to balance the nuance in the words. That may just be a matter of taste, but the consistency with --find-copies-harder may be important here.

-- 
Yann
Previous: Miles BaderNext: Junio C Hamano
Message 9 of 17 in “rationalize diffcore-rename options and their doc”
  1. rationalize diffcore-rename options and their docYann Dirson, Nov 10, 2010
  2. 1/2 [RFC] Use --find- instead of --detect- as prefix for long forms of -M and -C.Yann Dirson, Nov 10, 2010
  3. Thomas RastNov 11, 2010
  4. Yann DirsonNov 11, 2010
  5. Thomas RastNov 11, 2010
  6. Yann DirsonNov 12, 2010
  7. Kevin BallardNov 12, 2010
  8. Miles BaderNov 12, 2010
  9. Yann DirsonNov 12, 2010
  10. Junio C HamanoNov 29, 2010
  11. Kevin BallardNov 29, 2010
  12. Junio C HamanoNov 30, 2010
  13. Yann DirsonNov 30, 2010
  14. Yann DirsonNov 29, 2010
  15. Junio C HamanoNov 29, 2010
  16. 2/2 Keep together options controlling the behaviour of diffcore-rename.Yann Dirson, Nov 10, 2010
  17. Junio C HamanoNov 16, 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.