[PATCH 0/3] prepare for a rev/range that begins with a dash
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 12, 2017, 18:41 UTC
- Message-ID
- <20170212184132.12375-1-gitster@pobox.com>
- In-Reply-To
- <xmqqa89sguu4.fsf@gitster.mtv.corp.google.com>
It turns out that telling handle_revision_opt() not to molest argv[left++] does not have heavy fallout.
Junio C Hamano (3): handle_revision_opt(): do not update argv[left++] with an unknown arg setup_revisions(): swap if/else bodies to make the next step more readable setup_revisions(): allow a rev that begins with a dash
revision.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-)
-- 2.12.0-rc1-212-ga9adfb24fa