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

2019-06-24 Thread Duy Nguyen
On Mon, Jun 24, 2019 at 5:52 PM Johannes Schindelin wrote: > > 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

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

2019-06-24 Thread Johannes Schindelin
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 >

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

2019-06-22 Thread Nguyễn Thái Ngọc Duy
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