Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
hex_to_bytes(): simpler replacement for `get_oid_hex_segment()`
[gitweb.git]
/
builtin
/
log.c
diff --git
a/builtin/log.c
b/builtin/log.c
index 630d6cff2ff969c280fd0f06f17ce7a960901008..5ffc380bd71f0ab8b5bec06f864e9cdcffda1e2f 100644
(file)
--- a/
builtin/log.c
+++ b/
builtin/log.c
@@
-1311,7
+1311,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]))