Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin-merge.c: use standard active_cache macros
author
Junio C Hamano
<gitster@pobox.com>
Fri, 18 Dec 2009 06:23:54 +0000
(22:23 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 26 Dec 2009 01:10:10 +0000
(17:10 -0800)
Instead of using the low-level index_state interface, use the bog standard
active_cache and active_nr macros to access the cache entries when using the
default one.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-merge.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
902f235
)
diff --git
a/builtin-merge.c
b/builtin-merge.c
index f1c84d759dd44f661fb76741d528e43702dfc901..6cb804b6ce83dabadf218d214e277ad746f7614d 100644
(file)
--- a/
builtin-merge.c
+++ b/
builtin-merge.c
@@
-618,11
+618,10
@@
static void count_diff_files(struct diff_queue_struct *q,
static int count_unmerged_entries(void)
{
- const struct index_state *state = &the_index;
int i, ret = 0;
- for (i = 0; i <
state->cach
e_nr; i++)
- if (ce_stage(
state->
cache[i]))
+ for (i = 0; i <
activ
e_nr; i++)
+ if (ce_stage(
active_
cache[i]))
ret++;
return ret;