|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2] docs: document patch rules
Hi, On 03/02/2022 12:54, Juergen Gross wrote: I was under the impression that commit message should be wrap to 72 characters. This is because tools like "git log" would indent the commit message by 8 characters. +copying error output directly into the commit message. + +## Tags + +Tags are entries in the form + + Tag: something + +In general tags are added in chronological order. So a `Reviewed-by:` tag +should be added **after** the `Signed-off-by:` tag, as the review happened +after the patch was written. + +Do not split a tag across multiple lines, tags are exempt from the +"wrap at 75 columns" rule in order to simplify parsing scripts. This would need to be adjusted depending on the answer above. + +### Origin: + +Xen has inherited some source files from other open source projects. In case +a patch modifying such an inherited file is taken from that project (maybe in +modified form), the `Origin:` tag specifies the source of the patch: + + Origin: <repository-URL> <commit-id> NIT: Likes you did for Fixes tags, can you make clear that the commit id should be the first 12 characters? So the line... + +E.g.: + + Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f093b08c47b3 ... doesn't get horribly long. + +All tags **above** the `Origin:` tag are from the original patch (which +should all be kept), while tags **after** `Origin:` are related to the +normal Xen patch process as described here. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |