summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 153e98d)
raw | patch | inline | side by side (parent: 153e98d)
author | Aneesh Kumar K.V <aneesh.kumar@gmail.com> | |
Tue, 30 Jan 2007 07:56:49 +0000 (13:26 +0530) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 30 Jan 2007 10:32:28 +0000 (02:32 -0800) |
Fix blameview to use git-cat-file to read the file content.
This make sure we show the right content when we have modified
file in the working directory which is not committed.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This make sure we show the right content when we have modified
file in the working directory which is not committed.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/blameview/blameview.perl | patch | blob | history |
index a55f799f009e76126850a72e66d9932b9777fceb..5e9a67c1235cd04cb51f2166b1dd2cf9fdada8eb 100755 (executable)
$fileview->set_size_request(1024, 768);
$fileview->set_rules_hint(1);
-open(my $fh, '<', $fn)
+my $fh;
+open($fh, '-|', "git cat-file blob HEAD:$fn")
or die "unable to open $fn: $!";
while(<$fh>) {
chomp;