From: Junio C Hamano Date: Mon, 19 Sep 2022 21:35:23 +0000 (-0700) Subject: Merge branch 'sy/mv-out-of-cone' X-Git-Tag: v2.38.0-rc1~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=339517b0352dd548f971949ae317c6443f94a37d;p=thirdparty%2Fgit.git Merge branch 'sy/mv-out-of-cone' "git mv A B" in a sparsely populated working tree can be asked to move a path from a directory that is "in cone" to another directory that is "out of cone". Handling of such a case has been improved. * sy/mv-out-of-cone: builtin/mv.c: fix possible segfault in add_slash() mv: check overwrite for in-to-out move advice.h: add advise_on_moving_dirty_path() mv: cleanup empty WORKING_DIRECTORY mv: from in-cone to out-of-cone mv: remove BOTH from enum update_mode mv: check if is a SKIP_WORKTREE_DIR mv: free the with_slash in check_dir_in_index() mv: rename check_dir_in_index() to empty_dir_has_sparse_contents() t7002: add tests for moving from in-cone to out-of-cone --- 339517b0352dd548f971949ae317c6443f94a37d