summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5ac58f5)
raw | patch | inline | side by side (parent: 5ac58f5)
author | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 14 Feb 2007 05:28:00 +0000 (00:28 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 14 Feb 2007 05:28:00 +0000 (00:28 -0500) |
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>
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>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index b3a80c64efd8e4a150323e551918e969af8ebd41..04afb36343410ca235b2fd5b8b8b4b7b8859d931 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
enable_option transport
switch -- $subcommand {
+--version -
+version -
blame {
disable_option multicommit
disable_option branch
# -- 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"