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

git-ls-files handling of 'missing' files

From
JNJon Nelson <jnelson-git@jamponi.net>
Date
Feb 14, 2006, 03:46 UTC
Message-ID
<Pine.LNX.4.63.0602132126210.6352@gheavc.wnzcbav.cig>

git-ls-files appears to treat missing files as both removed /and/ modified, neither of which really seems right. Perhaps a new state, 'missing', is worthwhile?

Also, the documentation for git-ls-files is a bit confusing to me:
(aside: I assume that the '?' is a mis-typed '/')

The documentation confuses me when it says that files marked with a 'K' are "to be killed / other" - it don't understand why 'killed' and 'other' are lumped together.

The docs for git-ls-files indicate that a file marked as 'killed' (wrong tense?) is a file that needs to be removed for git-checkout-index to succeed. The manpage doesn't say why git-checkout-index needs to succeed or under what conditions git-checkout-index would be invoked. (ie, "why" should I manually remove this file).

Would it also be worthwhile to change the terminology used? Specifically, it seems that 'unchanged' is more readily understandable than 'cached', and the past tense of 'killed' throws me. I can offer no improvement there, however.

It seems to me that files can also exist in the state 'new' or 'added' (is this the same as unmerged?) Is there a state for 'conflict'?

Sorry for all of the questions, I've really been enjoying using git but every now and again something thows me - tonight it was git-ls-files. ;-)

-- Jon Nelson <jnelson-git@jamponi.net>

Next: Junio C Hamano
Message 1 of 2 in “git-ls-files handling of 'missing' files”
  1. Jon NelsonFeb 14, 2006
  2. Junio C HamanoFeb 14, 2006

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.