@matheusbsbs / matheus-bagliano / commits / 463ca37b61
Fork 0

git-gui: Use -M and -C when running blame.

Since we run blame incrementally in the background we might as well get as much data as we can from the file. Adding -M and -C definately makes it take longer to compute the revision annotations, but since they are streamed in and updated as they are discovered we'll get recent data almost immediately anyway. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Jan 29, 2007 at 03:03 UTC 463ca37b61b0d12aae8949c730bd38cc2149923f
1 file changed +3 -1
git-gui.sh
+3 -1
@@ -3276,7 +3276,9 @@ proc read_blame_catfile {fd w commit path texts w_lno w_file} {
3276 if {[eof $fd]} {
3277 close $fd
3278 set blame_status($w) {Loading annotations...}
3279 - set fd [open "| git blame --incremental $commit -- $path" r]
3279 + set cmd [list git blame -M -C --incremental]
3280 + lappend cmd $commit -- $path
3281 + set fd [open "| $cmd" r]
3282 fconfigure $fd -blocking 0 -translation lf -encoding binary
3283 fileevent $fd readable "read_blame_incremental $fd $w $texts"
3284 }