OLD | NEW |
1 '\" t | 1 '\" t |
2 .\" Title: git-hyper-blame | 2 .\" Title: git-hyper-blame |
3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] | 3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] |
4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> | 4 .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> |
5 .\" Date: 02/05/2016 | 5 .\" Date: 02/19/2016 |
6 .\" Manual: Chromium depot_tools Manual | 6 .\" Manual: Chromium depot_tools Manual |
7 .\" Source: depot_tools d2dbf32 | 7 .\" Source: depot_tools ba74a75 |
8 .\" Language: English | 8 .\" Language: English |
9 .\" | 9 .\" |
10 .TH "GIT\-HYPER\-BLAME" "1" "02/05/2016" "depot_tools d2dbf32" "Chromium depot_t
ools Manual" | 10 .TH "GIT\-HYPER\-BLAME" "1" "02/19/2016" "depot_tools ba74a75" "Chromium depot_t
ools Manual" |
11 .\" ----------------------------------------------------------------- | 11 .\" ----------------------------------------------------------------- |
12 .\" * Define some portability stuff | 12 .\" * Define some portability stuff |
13 .\" ----------------------------------------------------------------- | 13 .\" ----------------------------------------------------------------- |
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
15 .\" http://bugs.debian.org/507673 | 15 .\" http://bugs.debian.org/507673 |
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html | 16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
18 .ie \n(.g .ds Aq \(aq | 18 .ie \n(.g .ds Aq \(aq |
19 .el .ds Aq ' | 19 .el .ds Aq ' |
20 .\" ----------------------------------------------------------------- | 20 .\" ----------------------------------------------------------------- |
21 .\" * set default formatting | 21 .\" * set default formatting |
22 .\" ----------------------------------------------------------------- | 22 .\" ----------------------------------------------------------------- |
23 .\" disable hyphenation | 23 .\" disable hyphenation |
24 .nh | 24 .nh |
25 .\" disable justification (adjust text to left margin only) | 25 .\" disable justification (adjust text to left margin only) |
26 .ad l | 26 .ad l |
27 .\" ----------------------------------------------------------------- | 27 .\" ----------------------------------------------------------------- |
28 .\" * MAIN CONTENT STARTS HERE * | 28 .\" * MAIN CONTENT STARTS HERE * |
29 .\" ----------------------------------------------------------------- | 29 .\" ----------------------------------------------------------------- |
30 .SH "NAME" | 30 .SH "NAME" |
31 git-hyper-blame \- Like git blame, but with the ability to ignore or bypass cert
ain commits\&. | 31 git-hyper-blame \- Like git blame, but with the ability to ignore or bypass cert
ain commits\&. |
32 .SH "SYNOPSIS" | 32 .SH "SYNOPSIS" |
33 .sp | 33 .sp |
34 .nf | 34 .nf |
35 \fIgit hyper\-blame\fR [\-i <rev> [\-i <rev> \&...]] [<rev>] [\-\-] <file> | 35 \fIgit hyper\-blame\fR [\-i <rev> [\-i <rev> \&...]] [\-\-ignore\-file=<file>] |
| 36 [\-\-no\-default\-ignores] [<rev>] [\-\-] <file> |
36 .fi | 37 .fi |
37 .sp | 38 .sp |
38 .SH "DESCRIPTION" | 39 .SH "DESCRIPTION" |
39 .sp | 40 .sp |
40 git hyper\-blame is like git blame but it can ignore or "look through" a given s
et of commits, to find the real culprit\&. | 41 git hyper\-blame is like git blame but it can ignore or "look through" a given s
et of commits, to find the real culprit\&. |
41 .sp | 42 .sp |
42 This is useful if you have a commit that makes sweeping changes that are unlikel
y to be what you are looking for in a blame, such as mass reformatting or renami
ng\&. By adding these commits to the hyper\-blame ignore list, git hyper\-blame
will look past these commits to find the previous commit that touched a given li
ne\&. | 43 This is useful if you have a commit that makes sweeping changes that are unlikel
y to be what you are looking for in a blame, such as mass reformatting or renami
ng\&. By adding these commits to the hyper\-blame ignore list, git hyper\-blame
will look past these commits to find the previous commit that touched a given li
ne\&. |
43 .sp | 44 .sp |
44 Follows the normal blame syntax: annotates <file> with the revision that last mo
dified each line\&. Optional <rev> specifies the revision of <file> to start fro
m\&. | 45 Follows the normal blame syntax: annotates <file> with the revision that last mo
dified each line\&. Optional <rev> specifies the revision of <file> to start fro
m\&. |
| 46 .sp |
| 47 Automatically looks for a file called \&.git\-blame\-ignore\-revs in the reposit
ory root directory\&. This file has the same syntax as the \-\-ignore\-file argu
ment, and any commits mentioned in this file are added to the ignore list\&. |
45 .SH "OPTIONS" | 48 .SH "OPTIONS" |
46 .PP | 49 .PP |
47 \-i <rev> | 50 \-i <rev> |
48 .RS 4 | 51 .RS 4 |
49 A revision to ignore\&. Can be specified as many times as needed\&. | 52 A revision to ignore\&. Can be specified as many times as needed\&. |
50 .RE | 53 .RE |
| 54 .PP |
| 55 \-\-ignore\-file=<file> |
| 56 .RS 4 |
| 57 A file containing a list of revisions to ignore\&. Can have comments beginning w
ith |
| 58 #\&. |
| 59 .RE |
| 60 .PP |
| 61 \-\-no\-default\-ignores |
| 62 .RS 4 |
| 63 Do not ignore commits from the |
| 64 \&.git\-blame\-ignore\-revs |
| 65 file\&. |
| 66 .RE |
51 .SH "EXAMPLE" | 67 .SH "EXAMPLE" |
52 .sp | 68 .sp |
53 Let\(cqs run git blame on a file: | 69 Let\(cqs run git blame on a file: |
54 .sp | 70 .sp |
55 | 71 |
56 .sp | 72 .sp |
57 .if n \{\ | 73 .if n \{\ |
58 .RS 4 | 74 .RS 4 |
59 .\} | 75 .\} |
60 .nf | 76 .nf |
(...skipping 30 matching lines...) Expand all Loading... |
91 .RE | 107 .RE |
92 .\} | 108 .\} |
93 .sp | 109 .sp |
94 .sp | 110 .sp |
95 hyper\-blame places a * next to any line where it has skipped over an ignored co
mmit, so you know that the line in question has been changed (by an ignored comm
it) since the given person wrote it\&. | 111 hyper\-blame places a * next to any line where it has skipped over an ignored co
mmit, so you know that the line in question has been changed (by an ignored comm
it) since the given person wrote it\&. |
96 .SH "CAVEATS" | 112 .SH "CAVEATS" |
97 .sp | 113 .sp |
98 When a line skips over an ignored commit, a guess is made as to which commit pre
viously modified that line, but it is not always clear where the line came from\
&. If the ignored commit makes lots of changes in close proximity, in particular
adding/removing/reordering lines, then the wrong authors may be blamed for near
by edits\&. | 114 When a line skips over an ignored commit, a guess is made as to which commit pre
viously modified that line, but it is not always clear where the line came from\
&. If the ignored commit makes lots of changes in close proximity, in particular
adding/removing/reordering lines, then the wrong authors may be blamed for near
by edits\&. |
99 .sp | 115 .sp |
100 For this reason, hyper\-blame works best when the ignored commits are be limited
to minor changes such as formatting and renaming, not refactoring or other more
invasive changes\&. | 116 For this reason, hyper\-blame works best when the ignored commits are be limited
to minor changes such as formatting and renaming, not refactoring or other more
invasive changes\&. |
101 .SH "BUGS" | |
102 .sp | |
103 .RS 4 | |
104 .ie n \{\ | |
105 \h'-04'\(bu\h'+03'\c | |
106 .\} | |
107 .el \{\ | |
108 .sp -1 | |
109 .IP \(bu 2.3 | |
110 .\} | |
111 There is currently no way to pass the ignore list as a file\&. | |
112 .RE | |
113 .sp | |
114 .RS 4 | |
115 .ie n \{\ | |
116 \h'-04'\(bu\h'+03'\c | |
117 .\} | |
118 .el \{\ | |
119 .sp -1 | |
120 .IP \(bu 2.3 | |
121 .\} | |
122 It should be possible for a git repository to configure an automatic list of com
mits to ignore (like | |
123 \&.gitignore), so that project owners can maintain a list of "big change" commit
s that are ignored by hyper\-blame by default\&. | |
124 .RE | |
125 .SH "SEE ALSO" | 117 .SH "SEE ALSO" |
126 .sp | 118 .sp |
127 \fBgit-blame\fR(1) | 119 \fBgit-blame\fR(1) |
128 .SH "CHROMIUM DEPOT_TOOLS" | 120 .SH "CHROMIUM DEPOT_TOOLS" |
129 .sp | 121 .sp |
130 Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assi
st with the development of chromium and related projects\&. Download the tools f
rom \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&. | 122 Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assi
st with the development of chromium and related projects\&. Download the tools f
rom \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&. |
131 .SH "NOTES" | 123 .SH "NOTES" |
132 .IP " 1." 4 | 124 .IP " 1." 4 |
133 here | 125 here |
134 .RS 4 | 126 .RS 4 |
135 \%https://chromium.googlesource.com/chromium/tools/depot_tools.git | 127 \%https://chromium.googlesource.com/chromium/tools/depot_tools.git |
136 .RE | 128 .RE |
OLD | NEW |