[git] Clarify branch switch destination calculation
commitf62ebb28760db923b90db194e576b09c80a05264
authorDirk Wallenstein <halsmit@t-online.de>
Tue, 18 May 2010 07:24:40 +0000 (18 09:24 +0200)
committerFrédéric Péters <fpeters@0d.be>
Tue, 8 Jun 2010 08:44:45 +0000 (8 10:44 +0200)
treeae250841281dd5c594739687d6670011c8730bee
parentcdcae9f926eab59ce7511ffcb57a490b800b20dc
[git] Clarify branch switch destination calculation

Extract the calculation that determines if a branch switch is necessary
into a function. This also simplifies the calculations a bit while
preserving the previous behavior.
jhbuild/versioncontrol/git.py