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

ls-files -t broken? Or do I just not understand it?

From
Björn Steinbrink <b.steinbrink@gmx.de>
Date
Aug 19, 2009, 08:24 UTC
Message-ID
<20090819082423.GA18860@atjola.homenet>
Hi,

ls-files -t seems to always show status H, even if the file was modified or deleted, and thus gets shown by -m and -d respectively.

doener@atjola:git (master) $ git status # On branch master nothing to commit (working directory clean) doener@atjola:git (master) $ rm git.c doener@atjola:git (master) $ echo 123 > Makefile doener@atjola:git (master) $ git ls-files -m Makefile git.c doener@atjola:git (master) $ git ls-files -d git.c doener@atjola:git (master) $ git ls-files -t Makefile git.c H Makefile H git.c doener@atjola:git (master) $ git add -u Makefile git.c doener@atjola:git (master) $ git ls-files -m doener@atjola:git (master) $ git ls-files -d doener@atjola:git (master) $ git ls-files -t Makefile git.c H Makefile doener@atjola:git (master) $

I would have expected the first "ls-files -t" to say: C Makefile K git.c

Is that a bug, or am I just misunderstanding what -t is supposed to do?
Björn
Next: Matthieu Moy
Message 1 of 7 in “ls-files -t broken? Or do I just not understand it?”
  1. Björn SteinbrinkAug 19, 2009
  2. Matthieu MoyAug 19, 2009
  3. Nguyen Thai Ngoc DuyAug 19, 2009
  4. Björn SteinbrinkAug 19, 2009
  5. Nguyen Thai Ngoc DuyAug 19, 2009
  6. Junio C HamanoAug 19, 2009
  7. Matthieu MoyAug 19, 2009

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.