summaryrefslogtreecommitdiff
path: root/builtin/merge.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-07-10 09:48:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-10 21:10:27 (GMT)
commit9d02150cf4d833935161ef265e4dc03807caa800 (patch)
tree771542f24394f4e48e8c0029fce957166644e7cd /builtin/merge.c
parentcb979dbd8fead65e579442c25b620fdc401227b1 (diff)
downloadgit-9d02150cf4d833935161ef265e4dc03807caa800.zip
git-9d02150cf4d833935161ef265e4dc03807caa800.tar.gz
git-9d02150cf4d833935161ef265e4dc03807caa800.tar.bz2
fsck: simplify fsck_commit_buffer() by using commit_list_count()
fsck_commit_buffer() checks that the number of items in the parents list of a commit matches the number of parent lines in its buffer or -- if a graft is used -- the number of parents in that graft. Simplify the code by using commit_list_count() instead of counting by hand. Also use different variables for the number of lines and the number of list items, making it easier to compare them. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/merge.c')
0 files changed, 0 insertions, 0 deletions