Re: [PATCH/RFC] checkout: print something when checking out paths
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 12, 2018, 20:15 UTC
- Message-ID
- <xmqqy39yyruz.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CACsJy8BGgf0J=iKNc3qmz_rTMNdaPmR_1v+9i3nhGKcuOH4AFA@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 6 quoted lines
> Another thing I'm going to change (if this v1 is in the right > direction): print different messages for "git checkout -- foo" and > "git checkout foo -- bar". The first one is "%d paths have been > reverted" but the second one does different things and probably should > say "%d paths have been updated from branch foo" or something like > that.
I actually think that it is a bad idea to deliberately use such misleading words like "revert", that will discourage users from weaning themselves off of SVN. "checked out N paths out of the index", "checked out N paths out of the commit X" and "checked out N paths out of branch B" would be clear enough and won't have such a problem---otherwise you are encouraging them to make a mistake
echo garbage >path ... say oops ... git revert path