]> arthur.barton.de Git - bup.git/blob - HACKING
Update HACKING to reflect the glorious death of tmp/pending/meta.
[bup.git] / HACKING
1
2 Conventions?  Are you kidding?  OK fine.
3
4 Code Branching Model
5 ====================
6
7 The master branch is what we consider the main-line of development,
8 and the last, non-rc tag on master is the most recent stable release.
9
10 Of course, in all fairness, it has been a *long* time since the last
11 stable release, but we're working fairly hard to fix that -- no,
12 seriously.
13
14 Any branch with a "tmp/" prefix might be rebased (often), so keep that
15 in mind when using or depending on one.
16
17
18 Current Trajectory
19 ==================
20
21 At the moment, the primary goal is to test master in preparation for a
22 0.25 release, which among many other things will include more complete
23 support for filesystem metadata.
24
25 If you have the time and inclination, please help review patches
26 posted to the list for inclusion in 0.25.  (See below.)
27
28
29 More specific ways to help
30 ==========================
31
32 Testing -- yes please.  
33
34 With respect to patches, bup development is handled via the mailing
35 list, and all patches should be sent to the list for review (see
36 "Submitting Patches" below).
37
38 In most cases, we try to wait until we have at least two
39 "Reviewed-by:" replies to a patch posted to the list before
40 incorporating it into master, so reviews are an important way to help.
41 We also love a good "Tested-by:" -- the more the merrier.
42
43
44 Submitting patches
45 ==================
46
47 As mentioned, all patches should be posted to the mailing list for
48 review.
49
50 You can create a "signed off" (see ./SIGNED-OFF-BY) set of patches in
51 ./pending, ready for submission to the list, like this:
52
53     git format-patch -s -o pending origin/master
54
55 which will include all of the patches since origin/master on your
56 current branch.  Then you can send them to the list like this:
57
58         git send-email --to bup-list@googlegroups.com --compose patches/*
59
60 The use of --compose will cause git to ask you to edit a cover letter
61 that will be sent as the first message.
62
63 It's also possible to handle everything in one step:
64
65         git send-email -s --to bup-list@googlegroups.com --compose origin/master
66
67 and you can add --annotate if you'd like to review or edit each patch
68 before it's sent.
69
70 For single patches, this might be easier:
71
72     git send-email -s --to bup-list@googlegroups.com --annotate -n1 HEAD
73
74 which will send the top patch on the current branch, and will stop to
75 allow you to add comments.  You can add comments to the section with
76 the diffstat without affecting the commit message.
77
78 Of course, unless your machine is set up to handle outgoing mail
79 locally, you may need to configure git to be able to send mail.  See
80 git-send-email(1) for further details.
81
82 Oh, and we do have a ./CODING-STYLE, hobgoblins and all, though don't
83 let that scare you off.  We're not all that fierce.
84
85
86 Even More Generally
87 ===================
88
89 It's not like we have a lot of hard and fast rules, but some of the
90 ideas here aren't altogether terrible:
91
92   http://www.kernel.org/doc/Documentation/SubmittingPatches
93
94 In particular, we've been paying at least some attention to the bits
95 regarding Acked-by:, Reported-by:, Tested-by: and Reviewed-by:.