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

Re: [RFC] Rename git-rm --cached to --index

From
Junio C Hamano <gitster@pobox.com>
Date
May 28, 2008, 23:25 UTC
Message-ID
<7vprr6roxt.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080528231405.GA25416@denkbrett.schottelius.org>

Please don't make naming inconsistent. --index means "do things that usually affect only work tree also to the index as well", while --cached means "act only on the index" (study "git apply" for another example).

"git rm" that does not touch work tree but removes only the index entry should be named --cached.

Previous: Nico -telmich- SchotteliusNext: Wincent Colaiuta
Message 2 of 3 in “[RFC] Rename git-rm --cached to --index”
  1. Nico -telmich- SchotteliusMay 28, 2008
  2. Junio C HamanoMay 28, 2008
  3. Wincent ColaiutaMay 28, 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.