Thread (1 message) 1 message, 1 author, 2018-12-09

Re: why doesn't "git reset" mention optional pathspec?

From: Junio C Hamano <hidden>
Date: 2018-12-09 01:42:29

Duy Nguyen [off-list ref] writes:
Without --mixed, you're using the first form

    git reset [-q] [<tree-ish>] [--] <paths>...

which accepts pathspec. If it's not clear, of course patches are welcome.
Yup.  The deprecation is about spelling with "--mixed" when invoking
the "restore these paths out of tree-ish (or HEAD when omitted)
only in the index" mode.  The feature is of course not deprecated
(but it might have been better if it were "git checkout --cached").
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help