diff options
author | Elijah Newren <newren@gmail.com> | 2018-02-14 18:52:06 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-27 22:11:58 (GMT) |
commit | c5b761fb2711542073cf1906c0e86a34616b79ae (patch) | |
tree | f127a060756cb53996de66d88e58a8d740118bdf /strbuf.c | |
parent | febb3a86098f853066c2623c2392f156710dd40f (diff) | |
download | git-c5b761fb2711542073cf1906c0e86a34616b79ae.zip git-c5b761fb2711542073cf1906c0e86a34616b79ae.tar.gz git-c5b761fb2711542073cf1906c0e86a34616b79ae.tar.bz2 |
merge-recursive: ensure we write updates for directory-renamed file
When a file is present in HEAD before the merge and the other side of the
merge does not modify that file, we try to avoid re-writing the file and
making it stat-dirty. However, when a file is present in HEAD before the
merge and was in a directory that was renamed by the other side of the
merge, we have to move the file to a new location and re-write it.
Update the code that checks whether we can skip the update to also work in
the presence of directory renames.
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.c')
0 files changed, 0 insertions, 0 deletions