diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-11-12 15:03:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-11-12 15:03:57 -0800 |
commit | 6cd3729eae8d8945c0482423149163d40afd082c (patch) | |
tree | 5a41d37b2d0c5f1ba62ebb6d42901ffe4b26a796 /read-cache.c | |
parent | 2baf1850ceb01dfbee862e30f2a69cf6064e13eb (diff) | |
parent | c14639f7b14d3d856c7c1f6c097dd1cb9615a5d0 (diff) | |
download | git-6cd3729eae8d8945c0482423149163d40afd082c.tar.gz |
Merge branch 'maint'
* maint:
Start 1.6.0.5 cycle
Fix pack.packSizeLimit and --max-pack-size handling
checkout: Fix "initial checkout" detection
Remove the period after the git-check-attr summary
Conflicts:
RelNotes
Diffstat (limited to 'read-cache.c')
-rw-r--r-- | read-cache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/read-cache.c b/read-cache.c index 2c450866ce..22a814311d 100644 --- a/read-cache.c +++ b/read-cache.c @@ -1269,6 +1269,11 @@ unmap: die("index file corrupt"); } +int is_index_unborn(struct index_state *istate) +{ + return (!istate->cache_nr && !istate->alloc && !istate->timestamp); +} + int discard_index(struct index_state *istate) { istate->cache_nr = 0; |