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

Deprecate --cache.* ?

From
Lukas Sandström <lukass@etek.chalmers.se>
Date
Nov 15, 2005, 22:19 UTC
Message-ID
<437A5F08.7020908@etek.chalmers.se>

Currently, most of the remaining references to "cache" in Documantation/ are related to the --cache.* flag of four git commands.

git-dif-*index* uses --cached to mean "do not consider on-disk files at all"

git-fsck-objects uses --cache to consider index entries as head nodes for unreachability traces.

git-ls-files --cached shows all files recorded in the index.
git-update-*index* --cacheinfo is used to place a "fake" entry in the index
git-update-index also has the option --index-info which does something different.

My suggestion is that these cache-references be deprecated in favor of --index, --in-index, --index-only, --insert-index, or something along those lines.

Backward compability could be ensured by having both versions of the flags around for a while and issuing a warning when the old form is used.

Good idea? Bad? Stupid? Do we want to keep "cache" around?
Next: Junio C Hamano
Message 1 of 3 in “Deprecate --cache.* ?”
  1. Lukas SandströmNov 15, 2005
  2. Junio C HamanoNov 16, 2005
  3. Josef WeidendorferNov 16, 2005

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.