Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad5b78f

Browse files
kevans91bsdimp
authored andcommitted
Include some advice on patch authorship
Start deprecating "submitted by" lines, opting for either having a Git repository to pull from (i.e. correct metadata already) or setting the commit author manually. Signed-off-by: Kyle Evans <[email protected]>
1 parent 7938ef4 commit ad5b78f

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

meta.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Commit messages may have one or more of number of standard metadata tags in the
55
| Tag | Description |
66
| -------- | -------- |
77
| PR: | FreeBSD problem report (Bugzilla) number |
8-
| Submitted-by: | ID the original author, if not the committer |
98
| Reported-by: | ID of a 3rd party who reported the issue |
109
| Reviewed-by: | Reviewer ID |
1110
| Tested-by: | ID of those who have tested the change |
@@ -31,3 +30,5 @@ signed-off-by for commits at this time, but don't want to preclude it
3130
in the future.
3231

3332
In addition, you can replace - with a space in the above tags as a transition aid.
33+
34+
"Submitted by" may still appear, but is generally discouraged as a legacy tag. See [How to deal with Pull Requests](pull-request.md) for details on attribution.

pull-request.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Adapt this to wherever you got the pull or merge request from.
5757

5858
# Common ways to integrate the Pull Request
5959

60+
## Patches in a Git repository
61+
6062
We'll take the GitHub example, but GitLab and co. will be just the same.
6163

6264
Run `git log github/pull/422/head` and you see 3 commits by a contributor,
@@ -91,6 +93,26 @@ Auto-merging sys/sys/errno.h
9193
9294
```
9395

96+
## Other patches
97+
98+
Various means exist to submit patches that do not haved metadata associated with
99+
them, including the patch author, e.g., Bugzilla. Previously a committer would
100+
commit the received patch and typically add the contributor's name and e-mail
101+
address in the message metadata, in the form of a "Submitted by" line.
102+
103+
Going forward, the procedure is generally the same with exception of the
104+
contributor metadata. Patches should have the author set to the contributor's
105+
information that would have previously appeared in the "Submitted by" tag, and
106+
the "Submitted by" tag should be entirely omitted.
107+
108+
```
109+
% git checkout -b unattributed_patch freebsd/main
110+
% fetch "https://.../foo.diff"
111+
% patch < foo.diff
112+
...
113+
% git commit --author="Submitter Name <Email Address>" ...
114+
```
115+
94116
## Massaging the commit history and content
95117

96118
Inspect the commits with `git log -p --format=fuller`, note that Author is the

0 commit comments

Comments
 (0)