Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Extend --pretty=oneline to cover the first paragraph,
[gitweb.git]
/
cache.h
diff --git
a/cache.h
b/cache.h
index 6761554e6ca073e9c63c74b58834ab2195cf07ce..9700ca5018440dd8f096e967b6229f2e9e43986e 100644
(file)
--- a/
cache.h
+++ b/
cache.h
@@
-235,7
+235,10
@@
extern void verify_non_filename(const char *prefix, const char *name);
#define ALLOC_GROW(x, nr, alloc) \
do { \
if ((nr) >= alloc) { \
- alloc = alloc_nr(alloc); \
+ if (alloc_nr(alloc) < (nr)) \
+ alloc = (nr); \
+ else \
+ alloc = alloc_nr(alloc); \
x = xrealloc((x), alloc * sizeof(*(x))); \
} \
} while(0)