[PATCH/RFC v2 0/4] rev-parse: allow --flags to output rev-parse-like flags
- From
Jon Seymour <jon.seymour@gmail.com>
- Date
- Sep 25, 2010, 09:04 UTC
- Message-ID
- <1285405454-12521-1-git-send-email-jon.seymour@gmail.com>
This series allows git rev-parse --flags to output remaining flag-like arguments even if such arguments are valid options to git rev-parse itself.
Previously: $> git rev-parse --flags -q -X --no-flags -- Y -Z -X
Now: $> git rev-parse --flags -q -X --no-flags -- Y -Z -q -X --no-flags
Also: $> git rev-parse --symbolic --no-flags --flags -X HEAD HEAD
Note: git rev-parse --flags still seems broken w.r.t. documentation because: $> git rev-parse --symbolic --flags HEAD HEAD even though the documentation states that --flags does not output non-flag arguments.
Jon Seymour (4):
rev-parse: stop interpreting flags as options to rev-parse once
--flags is specified
rev-parse: Don't recognise --flags as an option if --no-flags has
been specified.
rev-parse: add tests for git rev-parse --flags.
rev-parse: update documentation of --flags and --no-flags optionsDocumentation/git-rev-parse.txt | 10 +++- builtin/rev-parse.c | 11 ++++ t/t1510-rev-parse-flags.sh | 116 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 135 insertions(+), 2 deletions(-) create mode 100755 t/t1510-rev-parse-flags.sh
-- 1.7.3.1.gc81ce.dirty