]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'sy/mv-out-of-cone'
authorJunio C Hamano <gitster@pobox.com>
Mon, 19 Sep 2022 21:35:23 +0000 (14:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Sep 2022 21:35:23 +0000 (14:35 -0700)
commit339517b0352dd548f971949ae317c6443f94a37d
tree7543259ea804cdf19f1661aad86654d5fddf19f0
parentd3fa443f97e3a8d75b51341e2d5bac380b7422df
parent7ead46810b507828c1481eaea6d64b9ed635b8b7
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 <destination> 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
builtin/mv.c