summaryrefslogtreecommitdiff
path: root/builtin/mv.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-11-19 13:07:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-11-21 03:06:15 (GMT)
commit031b2033e0b5c6276bbd93f276e1698f925fb498 (patch)
tree213e0ccf758ac82833f6354c22732b358951fc5c /builtin/mv.c
parent0e6550a2c631e032c1c283398e50e9e654c171f0 (diff)
downloadgit-031b2033e0b5c6276bbd93f276e1698f925fb498.zip
git-031b2033e0b5c6276bbd93f276e1698f925fb498.tar.gz
git-031b2033e0b5c6276bbd93f276e1698f925fb498.tar.bz2
cocci & cache.h: apply a selection of "pending" index-compatibility
Apply a selection of rules in "index-compatibility.pending.cocci" tree-wide, and in doing so migrate them to "index-compatibility.cocci". As in preceding commits the only manual changes here are the macro removals in "cache.h", and the update to the '*.cocci" rules. The rest of the C code changes are the result of applying those updated rules. Move rules for some rarely used cache compatibility macros from "index-compatibility.pending.cocci" to "index-compatibility.cocci" and apply them. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mv.c')
-rw-r--r--builtin/mv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin/mv.c b/builtin/mv.c
index df6157f..6f94c3b 100644
--- a/builtin/mv.c
+++ b/builtin/mv.c
@@ -471,7 +471,9 @@ remove_entry:
pos = cache_name_pos(src, strlen(src));
assert(pos >= 0);
if (!(mode & SPARSE) && !lstat(src, &st))
- sparse_and_dirty = ce_modified(active_cache[pos], &st, 0);
+ sparse_and_dirty = ie_modified(&the_index,
+ active_cache[pos], &st,
+ 0);
rename_index_entry_at(&the_index, pos, dst);
if (ignore_sparse &&