git: Fix switch delete branch, and merge action sensitivity
commitba40c68c362ba611b11b631a5c4bb7cb9e3dffb3
authorJames Liggett <jrliggett@cox.net>
Mon, 16 Jan 2012 00:58:42 +0000 (15 16:58 -0800)
committerJames Liggett <jrliggett@cox.net>
Mon, 16 Jan 2012 01:05:06 +0000 (15 17:05 -0800)
treea9eab73b1b6ed6e7c396edd2d72a5223106018b4
parent1b49153df5e0e70d1306643300b4531fa32df0ac
git: Fix switch delete branch, and merge action sensitivity

The swtich action doesn't care about how many items in the branch pane are
ticked;it switches to the branch that is highlighted, which is usually the last
branch item the user clicked on.

When deleting branches, the check boxes can be checked either before or after
running the action. The selections aren't considered until the OK button the the
dialog is clicked.

Finally, merging doesn't requre any branch to be selected at all, because users
can merge with any git reference, including branches, tags, and even arbitrary
commits.
plugins/git/git-branches-pane.c
plugins/git/git-branches-pane.h
plugins/git/plugin.c