summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorKevin Bracey <kevin@bracey.fi>2013-05-16 15:32:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-05-16 18:51:10 (GMT)
commit4d826608e9610851d29440ca290e54b701921608 (patch)
treedcae3f11bb893adf66bec4a3bd2cb6a098012a6c /object.h
parent7f34a46ff57121910c9ad697c2809a2d01ed1673 (diff)
downloadgit-4d826608e9610851d29440ca290e54b701921608.zip
git-4d826608e9610851d29440ca290e54b701921608.tar.gz
git-4d826608e9610851d29440ca290e54b701921608.tar.bz2
revision.c: discount side branches when computing TREESAME
Use the BOTTOM flag to define relevance for pruning. Relevant commits are those that are !UNINTERESTING or BOTTOM, and this allows us to identify irrelevant side branches (UNINTERESTING && !BOTTOM). If a merge has relevant parents, and it is TREESAME to them, then do not let irrelevant parents cause the merge to be treated as !TREESAME. When considering simplification, don't always include all merges - merges with exactly one relevant parent can be simplified, if TREESAME according to the above rule. These two changes greatly increase simplification in limited, pruned revision lists. Signed-off-by: Kevin Bracey <kevin@bracey.fi> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.h')
0 files changed, 0 insertions, 0 deletions