Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
mailinfo: do not strip leading spaces even for a header line
[gitweb.git]
/
parse-options.c
diff --git
a/parse-options.c
b/parse-options.c
index 7bbed5f3e2f54cdcaf42c93321cdc8089008eaf5..d218122af5c2c0cddd857fce0ae5064bf32f6387 100644
(file)
--- a/
parse-options.c
+++ b/
parse-options.c
@@
-636,3
+636,10
@@
int parse_opt_with_commit(const struct option *opt, const char *arg, int unset)
commit_list_insert(commit, opt->value);
return 0;
}
+
+int parse_opt_tertiary(const struct option *opt, const char *arg, int unset)
+{
+ int *target = opt->value;
+ *target = unset ? 2 : 1;
+ return 0;
+}