@@ -19,9 +19,6 @@ GNU General Public License for more details.
1919You should have received a copy of the GNU General Public License
2020along with this program; if not, write to the Free Software
2121Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA}
22- set gitgui_credits {
23- Paul Mackerras
24- }
2522
2623# #####################################################################
2724# #
@@ -302,6 +299,11 @@ proc ask_popup {msg} {
302299# #
303300# # version check
304301
302+ if {{--version} eq $argv || {version} eq $argv } {
303+ puts " git-gui version $appvers "
304+ exit
305+ }
306+
305307set req_maj 1
306308set req_min 5
307309
@@ -1171,7 +1173,7 @@ File [short_path $path] cannot be committed by this program.
11711173 }
11721174 }
11731175 }
1174- if {!$files_ready } {
1176+ if {!$files_ready && ![ string match *merge $curType ] } {
11751177 info_popup {No changes to commit.
11761178
11771179You must add at least 1 file before you can commit.
@@ -4492,61 +4494,6 @@ proc do_commit {} {
44924494 commit_tree
44934495}
44944496
4495- proc do_credits {} {
4496- global gitgui_credits
4497-
4498- set w .credits_dialog
4499-
4500- toplevel $w
4501- wm geometry $w " +[ winfo rootx .] +[ winfo rooty .] "
4502-
4503- label $w .header -text {git-gui Contributors} -font font_uibold
4504- pack $w .header -side top -fill x
4505-
4506- frame $w .buttons
4507- button $w .buttons.close -text {Close} \
4508- -font font_ui \
4509- -command [list destroy $w ]
4510- pack $w .buttons.close -side right
4511- pack $w .buttons -side bottom -fill x -pady 10 -padx 10
4512-
4513- frame $w .credits
4514- text $w .credits.t \
4515- -background [$w .header cget -background] \
4516- -yscrollcommand [list $w .credits.sby set] \
4517- -width 20 \
4518- -height 10 \
4519- -wrap none \
4520- -borderwidth 1 \
4521- -relief solid \
4522- -padx 5 -pady 5 \
4523- -font font_ui
4524- scrollbar $w .credits.sby -command [list $w .credits.t yview]
4525- pack $w .credits.sby -side right -fill y
4526- pack $w .credits.t -fill both -expand 1
4527- pack $w .credits -side top -fill both -expand 1 -padx 5 -pady 5
4528-
4529- label $w .desc \
4530- -text " All portions are copyrighted by their respective authors
4531- and are distributed under the GNU General Public License." \
4532- -padx 5 -pady 5 \
4533- -justify left \
4534- -anchor w \
4535- -borderwidth 1 \
4536- -relief solid \
4537- -font font_ui
4538- pack $w .desc -side top -fill x -padx 5 -pady 5
4539-
4540- $w .credits.t insert end " [ string trim $gitgui_credits ] \n "
4541- $w .credits.t conf -state disabled
4542- $w .credits.t see 1.0
4543-
4544- bind $w <Visibility> " grab $w ; focus $w "
4545- bind $w <Key-Escape> [list destroy $w ]
4546- wm title $w [$w .header cget -text]
4547- tkwait window $w
4548- }
4549-
45504497proc do_about {} {
45514498 global appvers copyright
45524499 global tcl_patchLevel tk_patchLevel
@@ -4563,10 +4510,6 @@ proc do_about {} {
45634510 button $w .buttons.close -text {Close} \
45644511 -font font_ui \
45654512 -command [list destroy $w ]
4566- button $w .buttons.credits -text {Contributors} \
4567- -font font_ui \
4568- -command do_credits
4569- pack $w .buttons.credits -side left
45704513 pack $w .buttons.close -side right
45714514 pack $w .buttons -side bottom -fill x -pady 10 -padx 10
45724515
@@ -5116,8 +5059,6 @@ enable_option branch
51165059enable_option transport
51175060
51185061switch -- $subcommand {
5119- --version -
5120- version -
51215062browser -
51225063blame {
51235064 disable_option multicommit
@@ -5488,11 +5429,6 @@ bind all <$M1B-Key-W> {destroy [winfo toplevel %W]}
54885429# -- Not a normal commit type invocation? Do that instead!
54895430#
54905431switch -- $subcommand {
5491- --version -
5492- version {
5493- puts " git-gui version $appvers "
5494- exit
5495- }
54965432browser {
54975433 if {[llength $argv ] != 1} {
54985434 puts stderr " usage: $argv0 browser commit"
0 commit comments