Skip to content

Commit ed3adde

Browse files
committed
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>
1 parent 5ac58f5 commit ed3adde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

git-gui.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4987,6 +4987,8 @@ enable_option branch
49874987
enable_option transport
49884988

49894989
switch -- $subcommand {
4990+
--version -
4991+
version -
49904992
blame {
49914993
disable_option multicommit
49924994
disable_option branch
@@ -5322,6 +5324,11 @@ bind all <$M1B-Key-W> {destroy [winfo toplevel %W]}
53225324
# -- Not a normal commit type invocation? Do that instead!
53235325
#
53245326
switch -- $subcommand {
5327+
--version -
5328+
version {
5329+
puts "git-gui version $appvers"
5330+
exit
5331+
}
53255332
blame {
53265333
if {[llength $argv] != 2} {
53275334
puts stderr "usage: $argv0 blame commit path"

0 commit comments

Comments
 (0)