author | Junio C Hamano <junkio@cox.net> | |
Thu, 5 Oct 2006 21:06:26 +0000 (14:06 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 5 Oct 2006 22:05:41 +0000 (15:05 -0700) | ||
commit | cf54a029ff82ce9b565e075bfa5d97ec82841283 | |
tree | 975763010a2911b64a2dbf546df162b6ffabdbb6 | tree | snapshot |
parent | eb93b7240665e35ecc0ed72098e1a5b3352bdc17 | commit | diff |
git-blame: --show-number (and -n)
The new option makes the command's native output format show the
original line number in the blamed revision.
Note: the current implementation of find_orig_linenum involves
linear search through the line_map array every time. It should
probably build a reverse map upfront and do a simple look-up to
speed things up, but I'll leave it to more clever and beautiful
people ;-).
Signed-off-by: Junio C Hamano <junkio@cox.net>
The new option makes the command's native output format show the
original line number in the blamed revision.
Note: the current implementation of find_orig_linenum involves
linear search through the line_map array every time. It should
probably build a reverse map upfront and do a simple look-up to
speed things up, but I'll leave it to more clever and beautiful
people ;-).
Signed-off-by: Junio C Hamano <junkio@cox.net>
blame.c | diff | blob | history |