@matheusbsbs / matheus-bagliano / commits / 73a2acc0a0
Fork 0

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>

Aneesh Kumar K.V committed Jan 30, 2007 at 13:26 UTC 73a2acc0a09829f887fdf2dbcfba217102227932
1 file changed +2 -1
contrib/blameview/blameview.perl
+2 -1
@@ -28,7 +28,8 @@ $fileview->get_column(0)->set_spacing(0);
28 $fileview->set_size_request(1024, 768);
29 $fileview->set_rules_hint(1);
30
31 -open(my $fh, '<', $fn)
31 +my $fh;
32 +open($fh, '-|', "git cat-file blob HEAD:$fn")
33 or die "unable to open $fn: $!";
34 while(<$fh>) {
35 chomp;