]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'lo/mv-missing-dest-dir-check' into jch
authorJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:40:47 +0000 (10:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2026 17:40:47 +0000 (10:40 -0700)
'git mv' has been updated to check for a missing destination
leading directory during the checking phase, allowing 'git mv -n'
to report the failure.  The error message when the rename(2)
syscall fails has also been improved to name both the source and
the destination.

* lo/mv-missing-dest-dir-check:
  mv: reject a destination whose leading path is missing or a symlink
  mv: name both source and destination when rename fails

1  2 
builtin/mv.c
t/t7001-mv.sh

diff --cc builtin/mv.c
Simple merge
diff --cc t/t7001-mv.sh
Simple merge