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

Re: git file listing is inconsistent

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 26, 2014, 21:47 UTC
Message-ID
<xmqqd289prb2.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAGOJM6+DTSn2qa-KTWceqyraaugX_YVZhirkdc+t+cDfFB4OyQ@mail.gmail.com>
Woody Gilk <woody.gilk@gmail.com> writes:
Show 5 quoted lines
> git diff --name-only
> git grep --files-with-matches
>
> I think --files-with-matches should be deprecated and replaced with
> --name-only for consistency.
That longer name comes from "GNU grep" consistency.

Why anybody does not use a shorter and sweeter "grep -l" is beyond me, though ;-)

Previous: Woody GilkNext: Jonathan Nieder
Message 2 of 5 in “git file listing is inconsistent”
  1. Woody GilkNov 26, 2014
  2. Junio C HamanoNov 26, 2014
  3. Jonathan NiederNov 26, 2014
  4. Woody GilkNov 26, 2014
  5. Scott SchmitNov 26, 2014

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.