commit | d9b18a81d5482d5fb62e6f3b1908cd2b45142ae6 | [log] [tgz] |
---|---|---|
author | Sasa Zivkov <sasa.zivkov@sap.com> | Wed Nov 20 16:11:37 2013 +0100 |
committer | Sasa Zivkov <sasa.zivkov@sap.com> | Thu Nov 21 16:54:29 2013 +0100 |
tree | 3ab2b4da4ce41ee833e3c29651c0efcb34eee02d | |
parent | 7aeed262139b72b7eb698f215f4a120521b1c9eb [diff] |
canReadCommit: move check for READ on refs/* on top This should improve performance for those users who have READ access on refs/*. Since this check is much cheaper than walking potentially large commit graphs, move it to the top of the method. Only when user doesn't have READ on refs/* do the usual reachability check from all readable branches and tags. Change-Id: I48341112347c1c4708c4b6b94c3326da6de8d8fb