aboutsummaryrefslogtreecommitdiff
path: root/contrib/blameview
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@gmail.com>2007-01-30 13:26:49 +0530
committerJunio C Hamano <junkio@cox.net>2007-01-30 02:32:28 -0800
commit73a2acc0a09829f887fdf2dbcfba217102227932 (patch)
tree9305b9592dd47435907ddf2c73861ca04e01bf6b /contrib/blameview
parent153e98d263a825c905f2ef4277b29d1fd5e09b42 (diff)
downloadgit-73a2acc0a09829f887fdf2dbcfba217102227932.tar.gz
git-73a2acc0a09829f887fdf2dbcfba217102227932.tar.xz
blameview: Use git-cat-file to read the file content.
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>
Diffstat (limited to 'contrib/blameview')
-rwxr-xr-xcontrib/blameview/blameview.perl3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/blameview/blameview.perl b/contrib/blameview/blameview.perl
index a55f799f0..5e9a67c12 100755
--- a/contrib/blameview/blameview.perl
+++ b/contrib/blameview/blameview.perl
@@ -28,7 +28,8 @@ $fileview->get_column(0)->set_spacing(0);
$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;