gpush/gpick: split analyze_local_branch()


this is preparatory refactoring, but it has an immediate side effect on
gpick: we now process the branch tracking options (--move & co.) even if
there are no local Changes, so we can print error messages about their
over-use.

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