Thread (1 message) 1 message, 1 author, 2020-06-14

Re: [PATCH] checkout: teach --worktree

From: Junio C Hamano <hidden>
Date: 2020-06-14 21:37:15

Eric Sunshine [off-list ref] writes:
quoted
+       When writing contents, only modify files in the worktree. Do not
+       modify the index. This option is essentially a no-op when used
+       without a `<tree-ish>`.
Why a no-op rather than actually diagnosing that --worktree makes no
sense in that case and erroring out?
Should it be a no-op?  If checking paths out of the index, with or
without the new --worktree option, the files in the working tree
will be affected and the contents in the index won't change.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help