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

Re: [PATCH] diff: make -M -C mean the same as -C -M

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 23, 2015, 22:34 UTC
Message-ID
<xmqqvbjxp1mg.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150123222659.GA22303@glandium.org>
Mike Hommey <mh@glandium.org> writes:
Show 9 quoted lines
>> In the context of "git blame", "-C" and "-M" control orthogonal
>> concepts and it makes sense to use only one but not the other, or
>> both.
>
> In the context of blame both -C and -M |= a flags set, so one doesn't
> override the other. You can place them in any order, the result will be
> the same. Incidentally, -C includes the flag -M sets, so -C -M is
> actually redundant. What -C and -M can be used for is set different
> scores (-C9 -M8).

Yes. That is what I meant by "orthogonal" and "makese sense to use only one but not the other, or both". As they are not related with each other, it makes sense to mix them freely, unlike "-C/-M" given to diff.

Previous: Mike Hommey
Message 4 of 4 in “diff: make -M -C mean the same as -C -M”
  1. diff: make -M -C mean the same as -C -MMike Hommey, Jan 23, 2015
  2. Junio C HamanoJan 23, 2015
  3. Mike HommeyJan 23, 2015
  4. Junio C HamanoJan 23, 2015

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.