File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2338,6 +2338,7 @@ proc do_explore {} {
2338
2338
# Open file relative to the working tree by the default associated app.
2339
2339
proc do_file_open {file } {
2340
2340
global _gitworktree
2341
+ if {[string index $file 0] eq {~}} {set file ./$file }
2341
2342
set explorer [get_explorer]
2342
2343
set full_file_path [file join $_gitworktree $file ]
2343
2344
exec $explorer [file nativename $full_file_path ] &
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ proc show_other_diff {path w m cont_info} {
190
190
set max_sz 100000
191
191
set type unknown
192
192
if {[catch {
193
+ if {[string index $path 0] eq {~}} {set path ./$path }
193
194
set type [file type $path ]
194
195
switch -- $type {
195
196
directory {
Original file line number Diff line number Diff line change @@ -617,7 +617,7 @@ proc delete_helper {path_list path_index deletion_errors batch_size \
617
617
618
618
set path [lindex $path_list $path_index ]
619
619
620
- set deletion_failed [catch {file delete -- $path } deletion_error]
620
+ set deletion_failed [catch {file delete -- ./ $path } deletion_error]
621
621
622
622
if {$deletion_failed } {
623
623
lappend deletion_errors [list " $deletion_error " ]
You can’t perform that action at this time.
0 commit comments