Re: [PATCH] git mv: do not keep slash in `git mv dir non-existing-dir/`
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 5, 2016, 16:18 UTC
- Message-ID
- <xmqqlh0bxk8d.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <alpine.DEB.2.20.1608051754080.5786@virtualbox>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Please note that t7001 *specifically* tests for the opposite of what you > want, then ;-)
Yes, I know. I am torn.
It seems "mv A B/" (not "git mv") when B does not exist does the same "wrong" thing, so the existing behaviour is at least consistent with the command line tools on Linux, and more importantly, existing users of "git mv A B/" have expected it to ignore the trailing slash for a long time, so let's not change the expected behaviour.
Thanks.