]> git.ipfire.org Git - thirdparty/git.git/commit - sha1-name.c
use DIV_ROUND_UP
authorRené Scharfe <l.s.r@web.de>
Sat, 8 Jul 2017 10:35:35 +0000 (12:35 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Jul 2017 21:24:36 +0000 (14:24 -0700)
commit42c78a216e751cfa2720c8276c9e9f2b81640e6b
treeff12c046af74e524d80ec247f8039592337afee6
parent8c8e978f5719c6a58fb998742207bf907f963143
use DIV_ROUND_UP

Convert code that divides and rounds up to use DIV_ROUND_UP to make the
intent clearer and reduce the number of magic constants.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
builtin/grep.c
builtin/log.c
builtin/receive-pack.c
diff.c
ewah/ewah_bitmap.c
imap-send.c
sha1_name.c
shallow.c