gpush/gpick: resolve branch names internally


we have the local refs loaded up, so we can resolve them in-process,
just like we already did with HEAD.
this is an optimization, but the real intent is a prospective bug fix
(if we manipulated the refs only in memory (due to --dry-run) prior to
using them). consequently, we don't do ancestry traversal (e.g., HEAD~3)
in-process (yet).

Change-Id: I1930c61c986d846b37f02ca00aaa5a6c6a5d9bac
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
commit5282ef6a522196c4acea69379ae20bd9016d3186
parent01777414c134c81794039002a069a3cd6be12e54
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>
commit timeTue, 9 Jan 2024 16:39:22 +0000