Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
use DIV_ROUND_UP
[gitweb.git]
/
builtin
/
log.c
diff --git
a/builtin/log.c
b/builtin/log.c
index 57ce470f5094c238ea4d5390f358b5cdd9499a56..96c050b450056205ea971340e824d1e3d87e0d6a 100644
(file)
--- a/
builtin/log.c
+++ b/
builtin/log.c
@@
-1302,7
+1302,7
@@
static struct commit *get_base_commit(const char *base_commit,
if (rev_nr % 2)
rev[i] = rev[2 * i];
- rev_nr =
(rev_nr + 1) / 2
;
+ rev_nr =
DIV_ROUND_UP(rev_nr, 2)
;
}
if (!in_merge_bases(base, rev[0]))