Skip to content

Commit 788fbee

Browse files
author
Git for Windows Build Agent
committed
Update 2 packages
git (2.49.0-1 -> 2.50.0-1) nano (8.4-1 -> 8.5-1) Signed-off-by: Git for Windows Build Agent <[email protected]>
1 parent 7264181 commit 788fbee

File tree

456 files changed

+871
-2278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

456 files changed

+871
-2278
lines changed

etc/nanorc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
## string means the operating-directory feature is turned off.
127127
# set operatingdir ""
128128

129-
## Remember the cursor position in each file for the next editing session.
129+
## Remember the position of cursor and anchors for the next editing session.
130130
# set positionlog
131131

132132
## Preserve the XON and XOFF keys (^Q and ^S).
@@ -302,6 +302,9 @@ include /usr/share/nano/*.nanorc
302302
## For normalizing Unicode to precomposed characters:
303303
# bind Sh-M-N "{execute}| uconv -x nfc {enter}" main
304304

305+
## For wiping all anchors in a buffer:
306+
# bind Sh-M-W "{execute}| cat {enter}" main
307+
305308
## For snipping trailing blanks when you save a file:
306309
# bind ^S "{execute}| sed 's/\s\+$//' {enter}{savefile}" main
307310

usr/bin/git-cvsserver

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use File::Path qw/rmtree/;
2828
use File::Basename;
2929
use Getopt::Long qw(:config require_order no_ignore_case);
3030

31-
my $VERSION = '2.49.0';
31+
my $VERSION = '2.50.0';
3232

3333
my $log = GITCVS::log->new();
3434
my $cfg;
@@ -4988,13 +4988,13 @@ sub gethistorydense
49884988
return $result;
49894989
}
49904990

4991-
=head2 escapeRefName
4991+
=head2 unescapeRefName
49924992
4993-
Apply an escape mechanism to compensate for characters that
4993+
Undo an escape mechanism to compensate for characters that
49944994
git ref names can have that CVS tags can not.
49954995
49964996
=cut
4997-
sub escapeRefName
4997+
sub unescapeRefName
49984998
{
49994999
my($self,$refName)=@_;
50005000

@@ -5011,27 +5011,6 @@ sub escapeRefName
50115011
# = "_-xx-" Where "xx" is the hexadecimal representation of the
50125012
# desired ASCII character byte. (for anything else)
50135013

5014-
if(! $refName=~/^[1-9][0-9]*(\.[1-9][0-9]*)*$/)
5015-
{
5016-
$refName=~s/_-/_-u--/g;
5017-
$refName=~s/\./_-p-/g;
5018-
$refName=~s%/%_-s-%g;
5019-
$refName=~s/[^-_a-zA-Z0-9]/sprintf("_-%02x-",$1)/eg;
5020-
}
5021-
}
5022-
5023-
=head2 unescapeRefName
5024-
5025-
Undo an escape mechanism to compensate for characters that
5026-
git ref names can have that CVS tags can not.
5027-
5028-
=cut
5029-
sub unescapeRefName
5030-
{
5031-
my($self,$refName)=@_;
5032-
5033-
# see escapeRefName() for description of escape mechanism.
5034-
50355014
$refName=~s/_-([spu]|[0-9a-f][0-9a-f])-/unescapeRefNameChar($1)/eg;
50365015

50375016
# allowed tag names

usr/bin/git-receive-pack.exe

-8.47 KB
Binary file not shown.

usr/bin/git-shell.exe

-27 KB
Binary file not shown.

usr/bin/git-upload-archive.exe

-8.47 KB
Binary file not shown.

usr/bin/git-upload-pack.exe

-8.47 KB
Binary file not shown.

usr/bin/git.exe

-8.47 KB
Binary file not shown.

usr/bin/gitk

Lines changed: 99 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -13,133 +13,102 @@ package require Tk
1313
##
1414
## Enabling platform-specific code paths
1515

16-
proc is_MacOSX {} {
17-
if {[tk windowingsystem] eq {aqua}} {
18-
return 1
19-
}
20-
return 0
21-
}
22-
2316
proc is_Windows {} {
24-
if {$::tcl_platform(platform) eq {windows}} {
25-
return 1
26-
}
27-
return 0
28-
}
29-
30-
set _iscygwin {}
31-
proc is_Cygwin {} {
32-
global _iscygwin
33-
if {$_iscygwin eq {}} {
34-
if {[string match "CYGWIN_*" $::tcl_platform(os)]} {
35-
set _iscygwin 1
36-
} else {
37-
set _iscygwin 0
38-
}
39-
}
40-
return $_iscygwin
17+
if {$::tcl_platform(platform) eq {windows}} {
18+
return 1
19+
}
20+
return 0
4121
}
4222

4323
######################################################################
4424
##
4525
## PATH lookup
4626

47-
set _search_path {}
48-
proc _which {what args} {
49-
global env _search_exe _search_path
50-
51-
if {$_search_path eq {}} {
52-
if {[is_Cygwin] && [regexp {^(/|\.:)} $env(PATH)]} {
53-
set _search_path [split [exec cygpath \
54-
--windows \
55-
--path \
56-
--absolute \
57-
$env(PATH)] {;}]
58-
set _search_exe .exe
59-
} elseif {[is_Windows]} {
60-
set gitguidir [file dirname [info script]]
61-
regsub -all ";" $gitguidir "\\;" gitguidir
62-
set env(PATH) "$gitguidir;$env(PATH)"
63-
set _search_path [split $env(PATH) {;}]
64-
# Skip empty `PATH` elements
65-
set _search_path [lsearch -all -inline -not -exact \
66-
$_search_path ""]
67-
set _search_exe .exe
68-
} else {
69-
set _search_path [split $env(PATH) :]
70-
set _search_exe {}
71-
}
72-
}
73-
74-
if {[is_Windows] && [lsearch -exact $args -script] >= 0} {
75-
set suffix {}
76-
} else {
77-
set suffix $_search_exe
78-
}
79-
80-
foreach p $_search_path {
81-
set p [file join $p $what$suffix]
82-
if {[file exists $p]} {
83-
return [file normalize $p]
84-
}
85-
}
86-
return {}
87-
}
88-
89-
proc sanitize_command_line {command_line from_index} {
90-
set i $from_index
91-
while {$i < [llength $command_line]} {
92-
set cmd [lindex $command_line $i]
93-
if {[file pathtype $cmd] ne "absolute"} {
94-
set fullpath [_which $cmd]
95-
if {$fullpath eq ""} {
96-
throw {NOT-FOUND} "$cmd not found in PATH"
97-
}
98-
lset command_line $i $fullpath
99-
}
100-
101-
# handle piped commands, e.g. `exec A | B`
102-
for {incr i} {$i < [llength $command_line]} {incr i} {
103-
if {[lindex $command_line $i] eq "|"} {
104-
incr i
105-
break
106-
}
107-
}
108-
}
109-
return $command_line
110-
}
111-
112-
# Override `exec` to avoid unsafe PATH lookup
113-
114-
rename exec real_exec
115-
116-
proc exec {args} {
117-
# skip options
118-
for {set i 0} {$i < [llength $args]} {incr i} {
119-
set arg [lindex $args $i]
120-
if {$arg eq "--"} {
121-
incr i
122-
break
123-
}
124-
if {[string range $arg 0 0] ne "-"} {
125-
break
126-
}
127-
}
128-
set args [sanitize_command_line $args $i]
129-
uplevel 1 real_exec $args
130-
}
131-
132-
# Override `open` to avoid unsafe PATH lookup
133-
134-
rename open real_open
135-
136-
proc open {args} {
137-
set arg0 [lindex $args 0]
138-
if {[string range $arg0 0 0] eq "|"} {
139-
set command_line [string trim [string range $arg0 1 end]]
140-
lset args 0 "| [sanitize_command_line $command_line 0]"
141-
}
142-
uplevel 1 real_open $args
27+
if {[is_Windows]} {
28+
set _search_path {}
29+
proc _which {what args} {
30+
global env _search_path
31+
32+
if {$_search_path eq {}} {
33+
set gitguidir [file dirname [info script]]
34+
regsub -all ";" $gitguidir "\\;" gitguidir
35+
set env(PATH) "$gitguidir;$env(PATH)"
36+
set _search_path [split $env(PATH) {;}]
37+
# Skip empty `PATH` elements
38+
set _search_path [lsearch -all -inline -not -exact \
39+
$_search_path ""]
40+
}
41+
42+
if {[lsearch -exact $args -script] >= 0} {
43+
set suffix {}
44+
} else {
45+
set suffix .exe
46+
}
47+
48+
foreach p $_search_path {
49+
set p [file join $p $what$suffix]
50+
if {[file exists $p]} {
51+
return [file normalize $p]
52+
}
53+
}
54+
return {}
55+
}
56+
57+
proc sanitize_command_line {command_line from_index} {
58+
set i $from_index
59+
while {$i < [llength $command_line]} {
60+
set cmd [lindex $command_line $i]
61+
if {[llength [file split $cmd]] < 2} {
62+
set fullpath [_which $cmd]
63+
if {$fullpath eq ""} {
64+
throw {NOT-FOUND} "$cmd not found in PATH"
65+
}
66+
lset command_line $i $fullpath
67+
}
68+
69+
# handle piped commands, e.g. `exec A | B`
70+
for {incr i} {$i < [llength $command_line]} {incr i} {
71+
if {[lindex $command_line $i] eq "|"} {
72+
incr i
73+
break
74+
}
75+
}
76+
}
77+
return $command_line
78+
}
79+
80+
# Override `exec` to avoid unsafe PATH lookup
81+
82+
rename exec real_exec
83+
84+
proc exec {args} {
85+
# skip options
86+
for {set i 0} {$i < [llength $args]} {incr i} {
87+
set arg [lindex $args $i]
88+
if {$arg eq "--"} {
89+
incr i
90+
break
91+
}
92+
if {[string range $arg 0 0] ne "-"} {
93+
break
94+
}
95+
}
96+
set args [sanitize_command_line $args $i]
97+
uplevel 1 real_exec $args
98+
}
99+
100+
# Override `open` to avoid unsafe PATH lookup
101+
102+
rename open real_open
103+
104+
proc open {args} {
105+
set arg0 [lindex $args 0]
106+
if {[string range $arg0 0 0] eq "|"} {
107+
set command_line [string trim [string range $arg0 1 end]]
108+
lset args 0 "| [sanitize_command_line $command_line 0]"
109+
}
110+
uplevel 1 real_open $args
111+
}
143112
}
144113
145114
# End of safe PATH lookup stuff
@@ -491,11 +460,11 @@ proc parseviewrevs {view revs} {
491460
# Escapes a list of filter paths to be passed to git log via stdin. Note that
492461
# paths must not be quoted.
493462
proc escape_filter_paths {paths} {
494-
set escaped [list]
495-
foreach path $paths {
496-
lappend escaped [string map {\\ \\\\ "\ " "\\\ "} $path]
497-
}
498-
return $escaped
463+
set escaped [list]
464+
foreach path $paths {
465+
lappend escaped [string map {\\ \\\\ "\ " "\\\ "} $path]
466+
}
467+
return $escaped
499468
}
500469
501470
# Start off a git log process and arrange to read its output
@@ -4632,7 +4601,7 @@ proc addviewmenu {n} {
46324601
.bar.view add radiobutton -label $viewname($n) \
46334602
-command [list showview $n] -variable selectedview -value $n
46344603
#$viewhlmenu add radiobutton -label $viewname($n) \
4635-
# -command [list addvhighlight $n] -variable selectedhlview
4604+
# -command [list addvhighlight $n] -variable selectedhlview
46364605
}
46374606
46384607
proc showview {n} {
@@ -7139,7 +7108,7 @@ proc findselectline {l} {
71397108
71407109
# mark the bits of a headline or author that match a find string
71417110
proc markmatches {canv l str tag matches font row} {
7142-
global selectedline
7111+
global selectedline foundbgcolor
71437112
71447113
set bbox [$canv bbox $tag]
71457114
set x0 [lindex $bbox 0]
@@ -7153,7 +7122,7 @@ proc markmatches {canv l str tag matches font row} {
71537122
set xlen [font measure $font [string range $str 0 [expr {$end}]]]
71547123
set t [$canv create rect [expr {$x0+$xoff}] $y0 \
71557124
[expr {$x0+$xlen+2}] $y1 \
7156-
-outline {} -tags [list match$l matches] -fill yellow]
7125+
-outline {} -tags [list match$l matches] -fill $foundbgcolor]
71577126
$canv lower $t
71587127
if {$row == $selectedline} {
71597128
$canv raise $t secsel
@@ -11767,13 +11736,11 @@ proc prefspage_general {notebook} {
1176711736
grid x $page.tabstopl $page.tabstop -sticky w
1176811737
1176911738
${NS}::label $page.wrapcommentl -text [mc "Wrap comment text"]
11770-
${NS}::combobox $page.wrapcomment -values {none char word} -state readonly \
11771-
-textvariable wrapcomment
11739+
makedroplist $page.wrapcomment wrapcomment none char word
1177211740
grid x $page.wrapcommentl $page.wrapcomment -sticky w
1177311741
1177411742
${NS}::label $page.wrapdefaultl -text [mc "Wrap other text"]
11775-
${NS}::combobox $page.wrapdefault -values {none char word} -state readonly \
11776-
-textvariable wrapdefault
11743+
makedroplist $page.wrapdefault wrapdefault none char word
1177711744
grid x $page.wrapdefaultl $page.wrapdefault -sticky w
1177811745
1177911746
${NS}::checkbutton $page.ntag -text [mc "Display nearby tags/heads"] \

0 commit comments

Comments
 (0)