pr-git-2356/ZamboniL/mv-detect-non-existing-target-folder-v3
tagged this
23 Jul 21:40
Changes in v3: * changed check from lstat to stat so it follows symlinks as suggested by Junio C Hamano * added ENOTDIR verification as suggested by Junio C Hamano * added S_ISDIR check to catch files as path components as suggested by Junio C Hamano * fixed indentation Changes in v2: * altered the error message to include both source and destination as suggested by Ben Knoble Lucas Zamboni Orioli (2): mv: name both source and destination when rename fails mv: check for missing destination directory before renaming builtin/mv.c | 26 +++++++++++++++++++++++++- t/t7001-mv.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 1 deletion(-) base-commit: 9a0c4701dcd5725c4184599322b52933ff5005ca Submitted-As: https://lore.kernel.org/git/pull.2356.v3.git.git.1784842831.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2356.git.git.1784125963694.gitgitgadget@gmail.com In-Reply-To: https://lore.kernel.org/git/pull.2356.v2.git.git.1784812390.gitgitgadget@gmail.com