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

Re: [BUG] git ls-files -m --with-tree does double output

From
AMAnders Melchiorsen <mail@cup.kalibalik.dk>
Date
Nov 13, 2008, 23:11 UTC
Message-ID
<57320.N1gUGH5fRhE=.1226617873.squirrel@webmail.hotelhot.dk>
In-Reply-To
<7vod0jfe51.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> What's the use case of using -m together with --with-tree to begin with?
The script runs
   git ls-files -d -m -o -t --with-tree=HEAD

to get a parseable "git status"-like output. If I leave out --with-tree=HEAD, I do not get information about staged changes.

I could use "git diff --name-status HEAD", but then there was a problem about untracked files, I think.

Thanks, Anders.

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 6 in “[BUG] git ls-files -m --with-tree does double output”
  1. Anders MelchiorsenNov 13, 2008
  2. Junio C HamanoNov 13, 2008
  3. Junio C HamanoNov 13, 2008
  4. Anders MelchiorsenNov 13, 2008
  5. Junio C HamanoNov 16, 2008
  6. Anders MelchiorsenNov 16, 2008

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.