Re: [PATCH 3/4] {fast-export,transport-helper}: style cleanups
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 9, 2013, 10:18 UTC
- Message-ID
- <CAMP44s3JE0wPJJy+PN2tzfAabrYb3oGHUkhCRnY52O8T77TGAg@mail.gmail.com>
- In-Reply-To
- <CAEBDL5Vu+gi_1CcJio0igNS2HmMrZNVUvWp3zeqjAgT6C7xZ0A@mail.gmail.com>
On Thu, May 9, 2013 at 4:30 AM, John Szakmeister <john@szakmeister.net> wrote:
Show 25 quoted lines
> On Thu, May 9, 2013 at 4:50 AM, Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
>> On Thu, May 9, 2013 at 3:46 AM, John Szakmeister <john@szakmeister.net> wrote:
>>> On Wed, May 8, 2013 at 9:16 PM, Felipe Contreras
> [snip]
>>>> @@ -289,13 +289,13 @@ static void handle_commit(struct commit *commit, struct rev_info *rev)
>>>> parse_commit(commit);
>>>> author = strstr(commit->buffer, "\nauthor ");
>>>> if (!author)
>>>> - die ("Could not find author in commit %s",
>>>> + die("Could not find author in commit %s",
>>>> sha1_to_hex(commit->object.sha1));
>>>
>>> It looks like your simple replace didn't account for calls with
>>> multiple lines. Now the remaining lines don't line up.
>>> :-) There's several more places like this in the patch.
>>
>> AFAIK neither the git or the Linux code-style specify how multiple
>> lines with open parenthesis should align.
>
> True, but I'm sure you know well that the Linux coding style tends to
> follow the GNU coding style--with modifications--which lines up args
> with the first character inside the paren
> (http://www.gnu.org/prep/standards/html_node/Formatting.html#Formatting-Your-Source-Code),
> and it's clear that's what the previous author had done.No, I don't. I don't see how the GNU style has anything to do with the Linux style.
-- Felipe Contreras