]> git.ipfire.org Git - thirdparty/git.git/commit - read-cache.c
read-cache.c: move index_has_changes() from merge.c
authorElijah Newren <newren@gmail.com>
Sun, 1 Jul 2018 01:24:55 +0000 (18:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jul 2018 20:13:17 +0000 (13:13 -0700)
commitcffbfad50d1f37aea03520dd8d8ea983bc57da02
tree65a5527116f958266b3237e4e50519f5034ab41c
parentfc54c1af3ec09bab8b8ea09768c2da4069b7f53e
read-cache.c: move index_has_changes() from merge.c

Since index_has_change() is an index-related function, move it to
read-cache.c, only modifying it to avoid uses of the active_cache and
active_nr macros.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge.c
read-cache.c