summaryrefslogtreecommitdiff
path: root/builtin-merge.c
diff options
context:
space:
mode:
authorLibravatar Junio Hamano <gitster@pobox.com>2009-03-30 21:34:14 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-04-01 12:35:12 -0700
commit494fbfe87ade4658cb5c3a061a5be5d6f6496607 (patch)
treee9ab04ec030937eca79c333ced066dea6d7d689f /builtin-merge.c
parentClean up reflog unreachability pruning decision (diff)
downloadtgif-494fbfe87ade4658cb5c3a061a5be5d6f6496607.tar.xz
Speed up reflog pruning of unreachable commits
Instead of doing the (potentially very expensive) "in_merge_base()" check for each commit that might be pruned if it is unreachable, do a preparatory reachability graph of the commit space, so that the common case of being reachable can be tested directly. [ Cleaned up a bit and tweaked to actually work. - Linus ] Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-merge.c')
0 files changed, 0 insertions, 0 deletions