Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
rev-parse --branches/--tags/--remotes=pattern
[gitweb.git]
/
parse-options.c
diff --git
a/parse-options.c
b/parse-options.c
index f5594114ede8a50090c8b97987b52a660235fa56..10ec21fb89788e19e6d8d99b29da9801bb406dd3 100644
(file)
--- a/
parse-options.c
+++ b/
parse-options.c
@@
-633,3
+633,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;
+}