Skip to content

Commit

Permalink
git-gui: Print version on the console.
Browse files Browse the repository at this point in the history
Like `git version`, `git gui version` (or `git gui --version`) shows
the version of git-gui, in case the user needs to know this, without
looking at it in the GUI about dialog.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
  • Loading branch information
Shawn O. Pearce committed Feb 14, 2007
1 parent 5ac58f5 commit ed3adde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4987,6 +4987,8 @@ enable_option branch
enable_option transport

switch -- $subcommand {
--version -
version -
blame {
disable_option multicommit
disable_option branch
Expand Down Expand Up @@ -5322,6 +5324,11 @@ bind all <$M1B-Key-W> {destroy [winfo toplevel %W]}
# -- Not a normal commit type invocation? Do that instead!
#
switch -- $subcommand {
--version -
version {
puts "git-gui version $appvers"
exit
}
blame {
if {[llength $argv] != 2} {
puts stderr "usage: $argv0 blame commit path"
Expand Down

0 comments on commit ed3adde

Please sign in to comment.