Library function to check for unmerged index entries
It's small, but it was in three places already, so it should be in the library. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
This commit is contained in:

committed by
Junio C Hamano

parent
922d87f92f
commit
94a5728cfb
10
read-cache.c
10
read-cache.c
@ -1176,6 +1176,16 @@ int discard_index(struct index_state *istate)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int unmerged_index(struct index_state *istate)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < istate->cache_nr; i++) {
|
||||
if (ce_stage(istate->cache[i]))
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define WRITE_BUFFER_SIZE 8192
|
||||
static unsigned char write_buffer[WRITE_BUFFER_SIZE];
|
||||
static unsigned long write_buffer_len;
|
||||
|
Reference in New Issue
Block a user