summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Christian Couder <chriscool@tuxfamily.org>2010-06-14 00:29:38 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-06-25 08:55:48 -0700
commitf873a273d1381574fd9b2f3f613c0c7e40fe3a1c (patch)
treedb19a5352dfbe8eedb42dd42fa15534ac0a5e76b /builtin
parentt3508 (cherry-pick): futureproof against unmerged files (diff)
downloadtgif-f873a273d1381574fd9b2f3f613c0c7e40fe3a1c.tar.xz
revert: accept arbitrary rev-list options
This can be useful to do something like: git rev-list --reverse master -- README | git cherry-pick -n --stdin without using xargs. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/revert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/revert.c b/builtin/revert.c
index 853e9e406c..3f4a20edd0 100644
--- a/builtin/revert.c
+++ b/builtin/revert.c
@@ -78,7 +78,8 @@ static void parse_args(int argc, const char **argv)
die("program error");
}
- commit_argc = parse_options(argc, argv, NULL, options, usage_str, 0);
+ commit_argc = parse_options(argc, argv, NULL, options, usage_str,
+ PARSE_OPT_KEEP_UNKNOWN);
if (commit_argc < 1)
usage_with_options(usage_str, options);