On Fri, Mar 1, 2013 at 2:59 PM, Daniel Friesen
<[email protected]> wrote:
> On Fri, 01 Mar 2013 14:45:14 -0800, Nischay Nahata <[email protected]>
> wrote:
>
>> On Sat, Mar 2, 2013 at 3:16 AM, Chad <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> This is a friendly reminder to everyone about the preferred way to
>>> link to bugs in your commit messages. When you include them as
>>> part of the footer, they are indexed and are thus searchable. For
>>> example:
>>>
>>> """
>>> Fixing some weird bug
>>>
>>> More explanation
>>> Blah blah blah.
>>>
>>> Bug: 1234
>>> Change-Id: Ia90.....
>>> """
>>>
>>> So when you do this, you're able to search for "bug:1234" via Gerrit.
>>> By doing this, you're also removing it from the first line (which was
>>> our old habit, mostly from SVN days), providing you more space to
>>> be descriptive in that first line.
>>>
>>>
>> I also prefer it in the header. The bug report is the best description :)
>>
>> Is it not possible for Gerrit to search if its in the header? or make it
>> so
>
>
> +1
>
> Tools should be coded around people. Not the other way around.
>

No, Gerrit cannot detect these in the header. Also, this is pretty
standard Git-fu to include this sort of metadata in the footer of
the commit.

-Chad

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to