Re: [RFC] Reverting individual files to HEAD

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

> David Kastrup <dak@xxxxxxx> writes:
>
>> That there is _another_ way to achieve a similar effect should not
>> be a deterrent to let git-reset do the _obvious_ thing for all
>> partial resets.
>
> At least please leave --soft out of it.  The option is
> specifically defined as "Not touching index nor work tree", so
> "git reset --soft <arbitrary-commit> paths..." is by definition
> a no-op.

Yup.  And I would point out exactly that in a stern warning when
calling git-reset in this manner: that leaves the confused user with
the least amount of head scratching.  Certainly less than some "syntax
error" or similarly reaction.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux