Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2010-06-14 09:29:38 +0400
committerJunio C Hamano <gitster@pobox.com>2010-06-25 19:55:48 +0400
commitf873a273d1381574fd9b2f3f613c0c7e40fe3a1c (patch)
treedb19a5352dfbe8eedb42dd42fa15534ac0a5e76b /builtin
parent18c8ff46104302ea30e879a0f2cb5eefb94df1a4 (diff)
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);