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>
Shawn O. Pearce committed
Feb 14, 2007 at 00:28 UTC
ed3adde081645c5f93685b22d39f2d74e068873d
1 file changed
+7
git-gui.sh
+7
@@ -4987,6 +4987,8 @@ enable_option branch
4987
enable_option transport
4988
4989
switch -- $subcommand {
4990
+--version -
4991
+version -
4992
blame {
4993
disable_option multicommit
4994
disable_option branch
@@ -5322,6 +5324,11 @@ bind all <$M1B-Key-W> {destroy [winfo toplevel %W]}
5324
# -- Not a normal commit type invocation? Do that instead!
5325
#
5326
switch -- $subcommand {
5327
+--version -
5328
+version {
5329
+ puts "git-gui version $appvers"
5330
+ exit
5331
+}
5332
blame {
5333
if {[llength $argv] != 2} {
5334
puts stderr "usage: $argv0 blame commit path"