summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db45378)
raw | patch | inline | side by side (parent: db45378)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 29 Jan 2007 08:03:29 +0000 (03:03 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 29 Jan 2007 08:03:29 +0000 (03:03 -0500) |
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>
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>
git-gui.sh | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index 09c1b74e753a26094612a35cd6b40a86f131def3..d5490cdde0af69102e8f5a4f0038f60528968ff9 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
if {[eof $fd]} {
close $fd
set blame_status($w) {Loading annotations...}
- set fd [open "| git blame --incremental $commit -- $path" r]
+ set cmd [list git blame -M -C --incremental]
+ lappend cmd $commit -- $path
+ set fd [open "| $cmd" r]
fconfigure $fd -blocking 0 -translation lf -encoding binary
fileevent $fd readable "read_blame_incremental $fd $w $texts"
}