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

Re: [PATCH] Document ls-files -t as obsolete.

From
Daniel Grace <negativeview@gmail.com>
Date
Apr 14, 2010, 14:47 UTC
Message-ID
<t2r62a3a9cb1004140747s46c5ee50z3a063d8f2acf4e61@mail.gmail.com>
In-Reply-To
<7vaat6qesd.fsf@alter.siamese.dyndns.org>
On Wed, Apr 14, 2010 at 9:39 AM, Junio C Hamano <gitster@pobox.com> wrote:
> If all your scripted Porcelain wants to see is "what are the paths I might
> want to run 'git add' on?", you do not want to run diff twice (which is
> what "status" does); you would say "ls-files -t -m -o --exclude-standard",
> instead. The alternative is not even superiour in this case.

Why -m? I have a script that attempts to ask just this question and I don't use -m. Reading the documentation, I'm not sure why I would. In what cases would I get wrong information without -m? For the record, I also don't use -t, though using -t in this case does make sense to me, I just apparently didn't notice that bit of the documentation when writing that feature.

Daniel http://www.doomstick.com

Previous: Junio C HamanoNext: Matthieu Moy
Message 3 of 6 in “Document ls-files -t as obsolete.”
  1. Document ls-files -t as obsolete.Matthieu Moy, Apr 14, 2010
  2. Junio C HamanoApr 14, 2010
  3. Daniel GraceApr 14, 2010
  4. Matthieu MoyApr 14, 2010
  5. Tor ArntsenApr 14, 2010
  6. Matthieu MoyApr 14, 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.