Thread (13 messages) flat view 13 messages, 4 authors, 2016-06-15

Re: [PATCH 1/3] vcs-svn: Introduce svnload, a dumpfile producer

From: Erik Faye-Lund <hidden>
Date: 2016-06-15 22:50:29

On Wed, Feb 2, 2011 at 3:53 AM, Ramkumar Ramachandra [off-list ref] wrote:
Hi Erik,

Erik Faye-Lund writes:
quoted
A very superficial review, because I don't have much time, and don't
know the surrounding code well. Sorry about that.
Thanks. I have to often switch back and fourth between GNU-style (for
Subversion) and Linux-style (for Git), so please bear with my silly
style errors.
That's completely fair :)
quoted
On Tue, Feb 1, 2011 at 3:26 PM, Ramkumar Ramachandra [off-list ref] wrote:
quoted
+       if (!val) die("Malformed author line");
+       if (!(tz_off = strrchr(val, ' '))) goto error;
+       *tz_off++ = '\0';
+       if (!(t = strrchr(val, ' '))) goto error;
style: use
"if (x)
      do_stuff();"
instead of
"if (x) do_stuff();"
This was intentional -- I'm only using it when do_stuff() is 'goto
error'. I thought it looked nicer that way.
This is still not the style we use in git:

$ git grep "if (" | grep goto | wc -l
      0
$ git grep -B1 "if (" | grep goto | wc -l
     33
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help