Skip to content

Commit fffaaba

Browse files
committed
git-gui: Don't nice git blame on MSYS as nice is not supported
Johannes Sixt reported that MinGW/MSYS does not have a nice.exe to drop the priority of a child process when it gets spawned. So we have to avoid trying to start `git blame` through nice when we are on Windows and do not have Cygwin available to us. Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 4e817d1 commit fffaaba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/blame.tcl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,11 @@ method _read_file {fd jump} {
487487
} ifdeleted { catch {close $fd} }
488488

489489
method _exec_blame {cur_w cur_d options cur_s} {
490-
set cmd [list nice git blame]
490+
set cmd [list]
491+
if {![is_Windows] || [is_Cygwin]} {
492+
lappend cmd nice
493+
}
494+
lappend cmd git blame
491495
set cmd [concat $cmd $options]
492496
lappend cmd --incremental
493497
if {$commit eq {}} {

0 commit comments

Comments
 (0)