git-commit-vandalism/lib
Shawn O. Pearce 349f92e3a2 git-gui: Show all possible branches for merge
Johannes Sixt pointed out that git-gui was randomly selecting
which branch (or tag!) it will show in the merge dialog when
more than one ref points at the same commit.  This can be a
problem for the user if they want to merge a branch, but the
ref that git-gui selected to display was actually a tag that
points at the commit at the tip of that branch.  Since the
user is looking for the branch, and not the tag, its confusing
to not find it, and worse, merging the tag causes git-merge to
generate a different message than if the branch was selected.

While I am in here and am messing around I have changed the
for-each-ref usage to take advantage of its --tcl formatting,
and to fetch the subject line of the commit (or tag) we are
looking at.  This way we could present the subject line in the
UI to the user, given them an even better chance to select
the correct branch.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2007-05-07 23:35:52 -04:00
..
blame.tcl git-gui: Allow vi keys to scroll the diff/blame regions 2007-05-07 23:35:51 -04:00
branch.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
browser.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
commit.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
console.tcl git-gui: Move console procs into their own namespace 2007-05-07 23:35:50 -04:00
database.tcl git-gui: Move console procs into their own namespace 2007-05-07 23:35:50 -04:00
diff.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
error.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
index.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
merge.tcl git-gui: Show all possible branches for merge 2007-05-07 23:35:52 -04:00
option.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
remote.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
shortcut.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
transport.tcl git-gui: Move console procs into their own namespace 2007-05-07 23:35:50 -04:00