summaryrefslogtreecommitdiff
path: root/builtin/diff-index.c
diff options
context:
space:
mode:
authorLibravatar Elijah Newren <newren@gmail.com>2018-06-30 18:24:56 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-07-03 13:13:18 -0700
commit1b9fbefbe08ff2bbcbb8a6089867b32fca603eac (patch)
tree34cb866304417116c47b1ec2a34b8421d331323f /builtin/diff-index.c
parentread-cache.c: move index_has_changes() from merge.c (diff)
downloadtgif-1b9fbefbe08ff2bbcbb8a6089867b32fca603eac.tar.xz
index_has_changes(): avoid assuming operating on the_index
Modify index_has_changes() to take a struct istate* instead of just operating on the_index. This is only a partial conversion, though, because we call do_diff_cache() which implicitly assumes work is to be done on the_index. Ongoing work is being done elsewhere to do the remainder of the conversion, and thus is not duplicated here. Instead, a simple check is put in place until that work is complete. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff-index.c')
0 files changed, 0 insertions, 0 deletions