Thread (68 messages) 68 messages, 6 authors, 2022-10-26

Re: [PATCH v2 4/9] bundle-uri: create base key-value pair parsing

From: Jonathan Tan <hidden>
Date: 2022-09-29 21:49:20

"Derrick Stolee via GitGitGadget" [off-list ref] writes:
quoted hunk ↗ jump to hunk
@@ -65,6 +66,81 @@ int for_all_bundles_in_list(struct bundle_list *list,
 	return 0;
 }
 
+/**
+ * Given a key-value pair, update the state of the given bundle list.
+ * Returns 0 if the key-value pair is understood. Returns 1 if the key
+ * is not understood or the value is malformed.
+ */
+MAYBE_UNUSED
+static int bundle_list_update(const char *key, const char *value,
+			      struct bundle_list *list)
+{
[snip]
+	if (parse_config_key(key, "bundle", &subsection, &subsection_len, &subkey))
+		return -1;
The comment at the top should say -1 instead of 1.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help