commit | 5cf89bc928f2efe08d2ab6c29d0ef5a717aac8ac | [log] [tgz] |
---|---|---|
author | Sasa Zivkov <sasa.zivkov@sap.com> | Thu Nov 14 15:22:32 2013 +0100 |
committer | Sasa Zivkov <sasa.zivkov@sap.com> | Thu Nov 14 15:22:32 2013 +0100 |
tree | 41d5460da941d12b1107ab0f3aab09c82c36f56c | |
parent | 16da16af685abcee01f9c3e5de0112ffcc5eb137 [diff] |
canReadCommit: swap preconditions check to improve performance It is much cheaper to check READ access on a ref than to check if a commit is merged into that ref. Therefore, do the checks in this order and avoid traversal of potentially large commit graph when we know that the user cannot read that branch. Change-Id: I008990915e15854100a84b3d795f6c54efe35c81