diff options
author | Aneesh Kumar K.V <aneesh.kumar@gmail.com> | 2007-01-30 13:26:49 +0530 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-01-30 02:32:28 -0800 |
commit | 73a2acc0a09829f887fdf2dbcfba217102227932 (patch) | |
tree | 9305b9592dd47435907ddf2c73861ca04e01bf6b /contrib | |
parent | 153e98d263a825c905f2ef4277b29d1fd5e09b42 (diff) | |
download | git-73a2acc0a09829f887fdf2dbcfba217102227932.tar.gz |
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')
-rwxr-xr-x | contrib/blameview/blameview.perl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/blameview/blameview.perl b/contrib/blameview/blameview.perl index a55f799f00..5e9a67c123 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; |