Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: recurse in-process using 'struct repository'
[gitweb.git]
/
builtin
/
gc.c
diff --git
a/builtin/gc.c
b/builtin/gc.c
index bd91f136fed125ab06502c22b74b4f193f60773a..2ba50a28735eee23887211684e60aaeda81c3e98 100644
(file)
--- a/
builtin/gc.c
+++ b/
builtin/gc.c
@@
-149,7
+149,7
@@
static int too_many_loose_objects(void)
if (!dir)
return 0;
- auto_threshold =
(gc_auto_threshold + 255) / 256
;
+ auto_threshold =
DIV_ROUND_UP(gc_auto_threshold, 256)
;
while ((ent = readdir(dir)) != NULL) {
if (strspn(ent->d_name, "0123456789abcdef") != 38 ||
ent->d_name[38] != '\0')