Thread (19 messages) 19 messages, 3 authors, 2016-06-15

Re: [PATCH 3/3] parse-opt: migrate builtin-merge-file.

flat view

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:45:25

Pierre Habouzit [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/builtin-merge-file.c b/builtin-merge-file.c
index 45c9853..7736fe8 100644
--- a/builtin-merge-file.c
+++ b/builtin-merge-file.c
@@ -2,21 +2,44 @@
...
quoted hunk ↗ jump to hunk
+static int label_cb(const struct option *opt, const char *arg, int unset)
+{
+	static int label_count = 0;
+	const char **names = (const char **)opt->value;
+
+	if (label_count >= 3)
+		return error("too many labels on the command like");
Typo on "command line".

-- 
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