@@ -130,7 +130,7 @@ proc unmerged_files {files} {
130
130
}
131
131
132
132
proc parseviewargs {n arglist} {
133
- global vdatemode vmergeonly vflags vdflags vrevs vfiltered vorigargs
133
+ global vdatemode vmergeonly vflags vdflags vrevs vfiltered vorigargs env
134
134
135
135
set vdatemode($n ) 0
136
136
set vmergeonly($n ) 0
@@ -210,6 +210,9 @@ proc parseviewargs {n arglist} {
210
210
# git rev-parse doesn't understand --merge
211
211
lappend revargs --gitk-symmetric-diff-marker MERGE_HEAD...HEAD
212
212
}
213
+ " --no-replace-objects" {
214
+ set env(GIT_NO_REPLACE_OBJECTS) " 1"
215
+ }
213
216
" -*" {
214
217
# Other flag arguments including -<n>
215
218
if {[string is digit -strict [string range $arg 1 end]]} {
@@ -2085,7 +2088,7 @@ proc makewindow {} {
2085
2088
set sha1entry .tf.bar.sha1
2086
2089
set entries $sha1entry
2087
2090
set sha1but .tf.bar.sha1label
2088
- button $sha1but -text [mc " SHA1 ID: " ] -state disabled -relief flat \
2091
+ button $sha1but -text " [ mc " SHA1 ID:" ] " -state disabled -relief flat \
2089
2092
-command gotocommit -width 8
2090
2093
$sha1but conf -disabledforeground [$sha1but cget -foreground]
2091
2094
pack .tf.bar.sha1label -side left
@@ -7686,8 +7689,10 @@ proc getblobdiffline {bdf ids} {
7686
7689
makediffhdr $fname $ids
7687
7690
$ctext insert end " \n $line \n " filesep
7688
7691
} elseif {![string compare -length 3 " >" $line ]} {
7692
+ set line [encoding convertfrom $diffencoding $line ]
7689
7693
$ctext insert end " $line \n " dresult
7690
7694
} elseif {![string compare -length 3 " <" $line ]} {
7695
+ set line [encoding convertfrom $diffencoding $line ]
7691
7696
$ctext insert end " $line \n " d0
7692
7697
} elseif {$diffinhdr } {
7693
7698
if {![string compare -length 12 " rename from " $line ]} {
@@ -8698,6 +8703,11 @@ proc mktag {} {
8698
8703
${NS} ::label $top .tlab -text [mc " Tag name:" ]
8699
8704
${NS} ::entry $top .tag -width 60
8700
8705
grid $top .tlab $top .tag -sticky w
8706
+ ${NS} ::label $top .op -text [mc " Tag message is optional" ]
8707
+ grid $top .op -columnspan 2 -sticky we
8708
+ ${NS} ::label $top .mlab -text [mc " Tag message:" ]
8709
+ ${NS} ::entry $top .msg -width 60
8710
+ grid $top .mlab $top .msg -sticky w
8701
8711
${NS} ::frame $top .buts
8702
8712
${NS} ::button $top .buts.gen -text [mc " Create" ] -command mktaggo
8703
8713
${NS} ::button $top .buts.can -text [mc " Cancel" ] -command mktagcan
@@ -8715,6 +8725,7 @@ proc domktag {} {
8715
8725
8716
8726
set id [$mktagtop .sha1 get]
8717
8727
set tag [$mktagtop .tag get]
8728
+ set msg [$mktagtop .msg get]
8718
8729
if {$tag == {}} {
8719
8730
error_popup [mc " No tag name specified" ] $mktagtop
8720
8731
return 0
@@ -8724,7 +8735,11 @@ proc domktag {} {
8724
8735
return 0
8725
8736
}
8726
8737
if {[catch {
8727
- exec git tag $tag $id
8738
+ if {$msg != {}} {
8739
+ exec git tag -a -m $msg $tag $id
8740
+ } else {
8741
+ exec git tag $tag $id
8742
+ }
8728
8743
} err]} {
8729
8744
error_popup " [ mc " Error creating tag:" ] $err " $mktagtop
8730
8745
return 0
@@ -10480,7 +10495,7 @@ proc showtag {tag isnew} {
10480
10495
set linknum 0
10481
10496
if {![info exists tagcontents($tag )]} {
10482
10497
catch {
10483
- set tagcontents($tag ) [exec git cat-file tag $tagobjid($ tag) ]
10498
+ set tagcontents($tag ) [exec git cat-file tag $tag ]
10484
10499
}
10485
10500
}
10486
10501
if {[info exists tagcontents($tag )]} {
0 commit comments