提交 ed3adde0 编写于 作者: S Shawn O. Pearce

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: NShawn O. Pearce <spearce@spearce.org>
上级 5ac58f5b
......@@ -4987,6 +4987,8 @@ enable_option branch
enable_option transport
switch -- $subcommand {
--version -
version -
blame {
disable_option multicommit
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!
#
switch -- $subcommand {
--version -
version {
puts "git-gui version $appvers"
exit
}
blame {
if {[llength $argv] != 2} {
puts stderr "usage: $argv0 blame commit path"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册