Browse Source

git-gui: Print version on the console.

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>
maint
Shawn O. Pearce 18 years ago
parent
commit
ed3adde081
  1. 7
      git-gui.sh

7
git-gui.sh

@ -4987,6 +4987,8 @@ enable_option branch
enable_option transport enable_option transport


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

Loading…
Cancel
Save