Debian Codegraph @

doc/HACKING

raw
1 # HACKING -*- org -*-
2 #+TITLE: Various hacking notes
3 #+STARTUP: showall
4
5 * How to contribute
6
7 The following stuff explains some basic procedures you need to
8 follow if you want to contribute code or documentation.
9
10 * No more ChangeLog files
11
12 Do not modify any of the ChangeLog files in Libgpg-error. Starting
13 on December 1st, 2011 we put change information only in the GIT
14 commit log, and generate a top-level ChangeLog file from logs at
15 "make dist" time. As such, there are strict requirements on the
16 form of the commit log messages. The old ChangeLog files have all
17 be renamed to ChangeLog-2011
18
19
20 * Commit log requirements
21
22 Your commit log should always start with a one-line summary, the
23 second line should be blank, and the remaining lines are usually
24 ChangeLog-style entries for all affected files. However, it's fine
25 -- even recommended -- to write a few lines of prose describing the
26 change, when the summary and ChangeLog entries don't give enough of
27 the big picture. Omit the leading TABs that you're used to seeing
28 in a "real" ChangeLog file, but keep the maximum line length at 72
29 or smaller, so that the generated ChangeLog lines, each with its
30 leading TAB, will not exceed 80 columns.
31
32 * Commit log keywords
33
34 - GnuPG-bug-id :: Values are comma or space delimited bug numbers
35 from bug.gnupg.org pertaining to this commit.
36 - Debian-bug-id :: Same as above but from the Debian bug tracker.
37 - CVE-id :: CVE id number pertaining to this commit.
38 - Regression-due-to :: Commit id of the regression fixed by this commit.
39 - Fixes-commit :: Commit id this commit fixes.
40 - Reported-by :: Value is a name or mail address of a bug reporte.
41 - Suggested-by :: Value is a name or mail address of someone how
42 suggested this change.
43 - Co-authored-by :: Name or mail address of a co-author
44 - Some-comments-by :: Name or mail address of the author of
45 additional comments (commit log or code).
46 - Proofread-by :: Sometimes used by translation commits.
47 - Signed-off-by :: Name or mail address of the developer
48
49 * Sending patches
50
51 - submitting patches, and subsequent discussions around them,
52 happens via the [email protected] public mailing list
53
54 - send your patches to that list, preferably PGP/MIME signed. Make
55 sure to include a mention of 'libgpg-error' in the subject line,
56 the list is used for several different projects
57
58 - if you're working from the git repo, here's a suggested workflow:
59
60 - configure git send-email defaults:
61
62 git config format.subjectPrefix 'PATCH libgpg-error'
63 git config sendemail.to [email protected]
64
65 Note that running ./autogen.sh on a fresh clone will do this for
66 you.
67
68 - hack hack hack
69
70 - commit your changes; group changes into easily-reviewable commit
71 units, feel free to submit several patches at once
72
73 - e.g. if you want to submit a single patch on top of master, do:
74 git send-email --annotate -1
75
76 - e.g. if you have two commits on top of master, do:
77 git send-email --annotate --cover-letter -2
78 (that prompts you for a summary mail to precede your actual
79 patch mails)
80
81 - use --dry-run to test your setup