Re: why doesn't "git reset" mention optional pathspec?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 9, 2018, 01:42 UTC
- Message-ID
- <xmqqftv75vcz.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CACsJy8A_vaVUt389O5ABa+vsrVDgo1L3WZzVx+P0qfiaY9=p1w@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 5 quoted lines
> 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").