Gentoo Archives: gentoo-dev

From: "Chí-Thanh Christopher Nguyễn" <chithanh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Referencing bug reports in git
Date: Mon, 10 Aug 2015 09:46:06
Message-Id: 55C872BD.5060808@gentoo.org
In Reply to: Re: [gentoo-dev] Referencing bug reports in git by Ulrich Mueller
1 Ulrich Mueller schrieb:
2 >> This is not a matter of going l33t, this is a matter of getting rid of
3 >> redundant and pretty much useless data all the same through almost all
4 >> commit messages.
5 >
6 > +1
7 >
8 > "Gentoo-Bug: 123456" or even "Bug: 123456" is enough to uniquely
9 > identify a bug. Also it is easier to read (and to type) than its URL
10 > equivalent.
11
12 I'd like to make the case for a URL in commit messages, like for example
13 freedesktop.org does, and also the kernel for external reports.
14
15 This allows us to treat Gentoo Bugzilla and upstream/external bug trackers
16 the same.
17 Besides, extracting the bug number from the URL is typically trivial. Going
18 from bug number to URL is sometimes not.
19
20 Regarding the argument that bug URLs change more often than bug numbers, I
21 think the number of instances when URL changed but the bug numbering didn't
22 is very low. OpenOffice did this I think, but I can't think of any other
23 project right now.
24
25 Here are examples from freedesktop and kernel:
26 http://cgit.freedesktop.org/xorg/xserver/commit/?id=db5337afb248edf81087cf8d74006fc496d70589
27 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ac88cd738425e04dbed3706621cf613a00708834
28
29 I prefer the
30
31 Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=333531
32
33 format even though not all bug trackers are running Bugzilla. "Bug: " works
34 fine with me too, and we could make
35 "https://bugs.gentoo.org/show_bug.cgi?id=" optional for Gentoo bugs, to
36 accommodate for those who insist on not typing so much.
37
38
39 Best regards,
40 Chí-Thanh Christopher Nguyễn

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] Referencing bug reports in git Ulrich Mueller <ulm@g.o>
Re: [gentoo-dev] Referencing bug reports in git "Michał Górny" <mgorny@g.o>