Skip to content

Commit

Permalink
sticking with blame for now
Browse files Browse the repository at this point in the history
  • Loading branch information
schacon committed Sep 2, 2008
1 parent bd6d2c8 commit a5f85ba
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -15,15 +15,16 @@ line in the file.
8e440259 (Peter Eriksen 2006-04-02 14:44:09 +0200 13) #include "commit.h"
8e440259 (Peter Eriksen 2006-04-02 14:44:09 +0200 14) #include "tag.h"
8e440259 (Peter Eriksen 2006-04-02 14:44:09 +0200 15) #include "tree.h"
f35a6d3b (Linus Torvalds 2007-04-09 21:20:29 -0700 16) #include "refs.h"70f5d5d3 (Nicolas Pitre 2008-02-28 00:25:19 -0500 17) #include "pack-revindex.h"628522ec (Junio C Hamano 2007-12-29 02:05:47 -0800 18) #include "sha1-lookup.h"
f35a6d3b (Linus Torvalds 2007-04-09 21:20:29 -0700 16) #include "refs.h"
70f5d5d3 (Nicolas Pitre 2008-02-28 00:25:19 -0500 17) #include "pack-revindex.h"628522ec (Junio C Hamano 2007-12-29 02:05:47 -0800 18) #include "sha1-lookup.h"
...

This is often helpful if a file had a line reverted or a mistake that broke
the build to help you see who changed that line last.

You can also specify a start and end line for the blame:

$>git annotate -L 160,+10 sha1_file.c
$>git blame -L 160,+10 sha1_file.c
ace1534d (Junio C Hamano 2005-05-07 00:38:04 -0700 160)}
ace1534d (Junio C Hamano 2005-05-07 00:38:04 -0700 161)
0fcfd160 (Linus Torvalds 2005-04-18 13:04:43 -0700 162)/*
Expand Down

0 comments on commit a5f85ba

Please sign in to comment.