-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
59 lines (35 loc) · 1.28 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
git-analyze-copyright -- check and update copyright information
Uses git-blame to determine the author and year edited of each line
within the given files.
It can check if the year/author appears in an existing copyright
notice. This feature can be disabled with the '-n' option.
By default missing year/author is reported on stderr. The --append
option can be used to append notices to the end of the file (to be
properly formatted later).
USAGE
git analyze-copyright [options..] [files..]
OPTIONS
-a|--append
append missing copyright notices to the end of the file
-c|--columns
line width for formatting
-f|--format
format string for the copyright lines
replaces %FILE %YEAR %AUTHOR %EMAIL and %LINES
%HFILL justifies to --columns
-s|--start
regex matching the begin of the copyright notice
-e|--end
regex matching the end of the copyright notice
-B|--before-start
offset to add before the copyright notice start
-A|--after-end
offset to add after the copyright notice end
-r|--relevant-lines
how many line changes are considered relevant
-p|--relevant-percent
how much percent changes are considered relevant
-n|--no-header
don't search for existing copyright header
--usage|-h
show this help