diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-07-18 01:39:27 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-07-18 01:39:27 -0400 |
commit | 8e891facbef4b0196e51fe2065602175f28508c3 (patch) | |
tree | bbf4ddd2fd91464e10f5e0d368a274880875fa8a /git-gui.sh | |
parent | git-gui: Allow browser subcommand to start in subdirectory (diff) | |
download | tgif-8e891facbef4b0196e51fe2065602175f28508c3.tar.xz |
git-gui: Allow users to browse any branch, not just the current one
We now allow users to pick which commit they want to browse through
our revision picking mega-widget. This opens up in a dialog first,
and then opens a tree browser for that selected commit. It is a very
simple approach and requires minimal code changes.
I also clarified the language a bit in the Repository menu, to show
that these actions will access files. Just in case a user is not
quite sure what specific action they are looking for, but they know
they want some sort of file thing.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-x | git-gui.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/git-gui.sh b/git-gui.sh index 267d606218..ac04bc0b26 100755 --- a/git-gui.sh +++ b/git-gui.sh @@ -1670,9 +1670,12 @@ if {[is_enabled transport]} { menu .mbar.repository .mbar.repository add command \ - -label {Browse Current Branch} \ + -label {Browse Current Branch's Files} \ -command {browser::new $current_branch} -trace add variable current_branch write ".mbar.repository entryconf [.mbar.repository index last] -label \"Browse \$current_branch\" ;#" +trace add variable current_branch write ".mbar.repository entryconf [.mbar.repository index last] -label \"Browse \$current_branch's Files\" ;#" +.mbar.repository add command \ + -label {Browse Branch Files...} \ + -command browser_open::dialog .mbar.repository add separator .mbar.repository add command \ |