Gaurav's Blog

return rand();

Git Blame

| Comments

Yesterday, I came to know about this wonderful git command. What it allows you to do, is to track who wrote a particular section of a file.

git blame
1
2
3
4
5
6
reddragon@reddragon-laptop:~$ git blame -L 150,+5 decaf.yy
24d48281 (Gaurav Menghani 2012-03-21 19:28:31 -0400 150) ClassDeclarations:
efe4b77c (Dhruv           2012-03-28 18:08:03 -0700 151)     ClassDeclarations C
d25802c5 (Gaurav Menghani 2012-03-28 21:17:15 -0400 152)         $1->push_back($
efe4b77c (Dhruv           2012-03-28 18:08:03 -0700 153)         $$ = $1;
efe4b77c (Dhruv           2012-03-28 18:08:03 -0700 154)     }

Comments