git-cl: fix 'status --field=patch' for Gerrit
We don't set the branch.<name>.gerritpatchset git config value during "git cl upload" because it isn't returned from the server either during push or during any of our subsequent RPCs, and adding another RPC just for that metadata would be slower that we would like. But calling "git cl status" already makes an RPC per branch, so take advantage of that to cache the gerritpatchset value during that operation. R=robertma Bug: 792611 Change-Id: I37b09f3c4cfced86668b457eff82f2424012b14b Reviewed-on: https://chromium-review.googlesource.com/815137 Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org> Commit-Queue: Aaron Gable <agable@chromium.org>changes/37/815137/2
parent
fa4112f5f9
commit
e8856eea42
Loading…
Reference in New Issue