diff options
author | Kevin Bracey <kevin@bracey.fi> | 2013-05-16 18:32:39 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-16 11:51:10 -0700 |
commit | 4d826608e9610851d29440ca290e54b701921608 (patch) | |
tree | dcae3f11bb893adf66bec4a3bd2cb6a098012a6c /wt-status.h | |
parent | 7f34a46ff57121910c9ad697c2809a2d01ed1673 (diff) | |
download | git-4d826608e9610851d29440ca290e54b701921608.tar.gz git-4d826608e9610851d29440ca290e54b701921608.tar.xz |
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 'wt-status.h')
0 files changed, 0 insertions, 0 deletions