Thread (11 messages) flat view 11 messages, 3 authors, 2016-06-15

Re: [PATCH 1/4] fast-import: put option parsing code in seperate functions

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:47:14

Johannes Schindelin [off-list ref] wrote:
On Wed, 12 Aug 2009, Sverre Rabbelier wrote:
quoted
+static void option_export_marks(const char *marks)
+{
+	struct strbuf buf = STRBUF_INIT;
+	strbuf_addstr(&buf, marks);
+	mark_file = strbuf_detach(&buf, NULL);
+}
Heh, this is a pretty convoluted way to write

	mark_file = xstrdup(marks);

;-)
Agreed.
quoted
+static void option_force()
+{
+	force_update = 1;
+}
I'm not sure that I would put these simple assignments in separate 
functions, but that's certainly up to you!
Oh, good point.  Yes, please don't do that, please just write these
directly into the option parser.

Aside from these remarks, this patch looks good to me.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help