summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2016-10-29 14:55:36 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-10-30 16:03:25 -0700
commitde9f7fa3b08ae0554e57f6a6f5de2559d5bcb871 (patch)
tree4ba7581e8c3ccdcb67b292bb4ab3dfb939fa088e /attr.c
parentGit 2.8.4 (diff)
downloadtgif-de9f7fa3b08ae0554e57f6a6f5de2559d5bcb871.tar.xz
commit: simplify building parents list
Push pptr down into the FROM_MERGE branch of the if/else statement, where it's actually used, and call commit_list_append() for appending elements instead of playing tricks with commit_list_insert(). Call copy_commit_list() in the amend branch instead of open-coding it. Don't bother setting pptr in the final branch as it's not used thereafter. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.c')
0 files changed, 0 insertions, 0 deletions