]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: Update best practices wrt "Fixes:" and GitLab
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Oct 2022 11:45:23 +0000 (13:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Oct 2022 06:37:28 +0000 (08:37 +0200)
We document that a commit fixing an issue tracked in GitLab
should put just "Fixes: #NNN" into its commit message. But when
viewing git log, having full URL which is directly clickable is
more developer friendly and GitLab is capable of handling both.
Therefore, document that users should put full URL, just like
when fixing a bug tracked in other sites.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
docs/best-practices.rst

index ba8478ab05cb0021501cc706e35a5d792392771f..1e5817f714726859dcb8b16f5c230fef6e377403 100644 (file)
@@ -14,12 +14,12 @@ with minimal back-and-forth.
    (60 characters is typical), followed by a blank line, followed
    by any longer description of why your patch makes sense. If the
    patch fixes a regression, and you know what commit introduced
-   the problem, mentioning that is useful. If the patch resolves a
-   upstream bug reported in GitLab, put "Fixes: #NNN" in the commit
-   message. For a downstream bug, mention the URL of the bug instead.
-   In both cases also summarize the issue rather than making all
-   readers follow the link. You can use 'git shortlog -30' to get
-   an idea of typical summary lines.
+   the problem, mentioning that is useful. If the patch resolves
+   an upstream bug reported in GitLab, or downstream bug, put
+   "Resolves: $fullURL" of the bug. In both cases also summarize
+   the issue rather than making all readers follow the link. You
+   can use 'git shortlog -30' to get an idea of typical summary
+   lines.
 
 -  Split large changes into a series of smaller patches,
    self-contained if possible, with an explanation of each patch