+3
-16
lines changedFilter options
+3
-16
lines changed Original file line number Diff line number Diff line change
@@ -353,16 +353,6 @@ proc parseviewrevs {view revs} {
353
353
return $ret
354
354
}
355
355
356
-
# Escapes a list of filter paths to be passed to git log via stdin. Note that
357
-
# paths must not be quoted.
358
-
proc escape_filter_paths {paths} {
359
-
set escaped [list]
360
-
foreach path $paths {
361
-
lappend escaped [string map {\\ \\\\ "\ " "\\\ "} $path]
362
-
}
363
-
return $escaped
364
-
}
365
-
366
356
# Start off a git log process and arrange to read its output
367
357
proc start_rev_list {view} {
368
358
global startmsecs commitidx viewcomplete curview
@@ -424,8 +414,7 @@ proc start_rev_list {view} {
424
414
if {[catch {
425
415
set fd [open [concat | git log --no-color -z --pretty=raw $show_notes \
426
416
--parents --boundary $args --stdin \
427
-
"<<[join [concat $revs "--" \
428
-
[escape_filter_paths $files]] "\\n"]"] r]
417
+
[list "<<[join [concat $revs "--" $files] "\n"]"]] r]
429
418
} err]} {
430
419
error_popup "[mc "Error executing git log:"] $err"
431
420
return 0
@@ -578,9 +567,7 @@ proc updatecommits {} {
578
567
if {[catch {
579
568
set fd [open [concat | git log --no-color -z --pretty=raw $show_notes \
580
569
--parents --boundary $args --stdin \
581
-
"<<[join [concat $revs "--" \
582
-
[escape_filter_paths \
583
-
$vfilelimit($view)]] "\\n"]"] r]
570
+
[list "<<[join [concat $revs "--" $vfilelimit($view)] "\n"]"]] r]
584
571
} err]} {
585
572
error_popup "[mc "Error executing git log:"] $err"
586
573
return
@@ -10258,7 +10245,7 @@ proc getallcommits {} {
10258
10245
if {$ids eq "--all"} {
10259
10246
set cmd [concat $cmd "--all"]
10260
10247
} else {
10261
-
set cmd [concat $cmd --stdin "<<[join $ids "\\n"]"]
10248
+
set cmd [concat $cmd --stdin [list "<<[join $ids "\n"]"]]
10262
10249
}
10263
10250
set fd [open $cmd r]
10264
10251
fconfigure $fd -blocking 0
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4