@matheusbsbs / matheus-bagliano / commits / fffaaba358
Fork 0

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 <spearce@spearce.org>

Shawn O. Pearce committed Jun 27, 2007 at 00:27 UTC fffaaba3588b0da14f4e3265540d400859aad49e
1 file changed +5 -1
lib/blame.tcl
+5 -1
@@ -487,7 +487,11 @@ method _read_file {fd jump} {
487 } ifdeleted { catch {close $fd} }
488
489 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
495 set cmd [concat $cmd $options]
496 lappend cmd --incremental
497 if {$commit eq {}} {