Re: [PATCH 6/8] checkout: add --cached option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 19, 2019, 22:33 UTC
- Message-ID
- <xmqqwolvz9wj.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CABPp-BEsK8grsGCMq9-QCWd4fgYzm7GfzQudbhFvGj_C55LNyA@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
Show 13 quoted lines
> On Tue, Feb 19, 2019 at 11:03 AM Junio C Hamano <gitster@pobox.com> wrote: >> * --no-index --worktree <path>... >> >> Update only the working tree files without touching the index >> (new feature that cannot be done with the current Git, although >> "cat-file -p >path" may be close enough at times), from the index > > I worry slightly that wording like this might paint ourselves into a > similar corner of only correctly handling files as paths, rather than > also handling directories as paths, and/or which presumes the > no-overlay mode that I find problematic. Maybe your "at times" just > meant "when dealing with a path that is a file that existed in the > given source", but I wonder if you are pushing more than that?
No, I meant "when you are not doing smudge filters (including eol conversion)", aka "'cat-file -p' gives you raw blob contents, which may not be what you want in your worktree."