Use get_config to look up whether a branch is dormant
get_config is implemented by caching git config --list -z, rather than shelling out for every key one-by-one. This reduces git map-branches time on my machine from 1.2s to 0.6s. Change-Id: I999f4b893d248c2f71a36ec0f2594e0cdf08a248 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5498461 Commit-Queue: David Benjamin <davidben@chromium.org> Reviewed-by: Gavin Mak <gavinmak@google.com>changes/61/5498461/4
parent
54b27c0a13
commit
40a3fc4722
Loading…
Reference in New Issue