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

Re: [PATCH] rm: add --intent-to-add, to be used with --cached

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jun 24, 2019, 10:52 UTC
Message-ID
<nycvar.QRO.7.76.6.1906241251040.44@tvgsbejvaqbjf.bet>
In-Reply-To
<20190622122417.28178-1-pclouds@gmail.com>
Hi Duy,
On Sat, 22 Jun 2019, Nguyễn Thái Ngọc Duy wrote:
Show 9 quoted lines
> An index entry serves two purposes: to keep the content to be committed,
> and to mark that the same path on worktree is tracked. When
>
>     git rm --cached foo
>
> is called and there is "foo" in worktree, its status is changed from
> tracked to untracked. Which I think is not intended, at least from the
> user perspective because we almost always tell people "Git is about the
> content" (*).

I can buy that rationale. However, I do not think that "remove intent to add" (which is how I read `git rm --intent-to-add`) is a particularly good way to express this. I could see `--keep-intent-to-add` as a better alternative, though.

Ciao, Johannes

Previous: Nguyễn Thái Ngọc DuyNext: Duy Nguyen
Message 2 of 3 in “rm: add --intent-to-add, to be used with --cached”
  1. rm: add --intent-to-add, to be used with --cachedNguyễn Thái Ngọc Duy, Jun 22, 2019
  2. Johannes SchindelinJun 24, 2019
  3. Duy NguyenJun 24, 2019

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.