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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Duy,

On Sat, 22 Jun 2019, Nguyễn Thái Ngọc Duy wrote:

> 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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux