From: Michael J Gruber <git@drmicha.warpmail.net>
To: git@vger.kernel.org
Cc: "Jeff King" <peff@peff.net>,
"Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>,
"Junio C Hamano" <gitster@pobox.com>
Subject: [PATCH 0/4] OPT_{FILENAME,PATH}
Date: Mon, 23 Feb 2015 17:17:42 +0100 [thread overview]
Message-ID: <cover.1424707497.git.git@drmicha.warpmail.net> (raw)
In-Reply-To: <20150223144214.GA31624@peff.net>
Here's a "mini-war" on file-type arguments being specified as OPT_STRING
(in order to repent for doing so myself).
1/4 introduces OPT_PATH which is like OPT_FILENAME, but takes an additional
argument which names the option argument.
2/4 converts OPT_STRING to OPT_FILENAME where it makes sense
3/4 converts OPT_STRING to OPT_PATH where it makes sense
4/4 converts OPT_FILENAME to OPT_PATH for "checkout --to"
1/4, 2/4 should apply on top of origin/next independently.
3/4 needs 1/4.
4/4 needs 1/4 and is on top of nd/multiple-worktrees.
Michael J Gruber (4):
parse-options: introduce OPT_PATH
option-strings: use OPT_FILENAME
option-strings: use OPT_PATH
checkout: --to requires directory
Documentation/technical/api-parse-options.txt | 5 +++++
archive.c | 2 +-
builtin/archive.c | 2 +-
builtin/blame.c | 4 ++--
builtin/checkout.c | 2 +-
builtin/clone.c | 4 ++--
builtin/config.c | 2 +-
builtin/fast-export.c | 4 ++--
builtin/hash-object.c | 2 +-
builtin/init-db.c | 4 ++--
builtin/ls-files.c | 2 +-
parse-options.h | 2 ++
12 files changed, 21 insertions(+), 14 deletions(-)
--
2.3.0.296.g32c87e1
next prev parent reply other threads:[~2015-02-23 16:17 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-23 14:16 [PATCH] checkout: --to requires directory Michael J Gruber
2015-02-23 14:42 ` Jeff King
2015-02-23 15:01 ` Michael J Gruber
2015-02-23 16:17 ` Michael J Gruber [this message]
2015-02-23 16:17 ` [PATCH 1/4] parse-options: introduce OPT_PATH Michael J Gruber
2015-02-23 19:23 ` Junio C Hamano
2015-02-24 15:49 ` Michael J Gruber
2015-02-23 20:06 ` Philip Oakley
2015-02-23 16:17 ` [PATCH 2/4] option-strings: use OPT_FILENAME Michael J Gruber
2015-02-23 17:44 ` Jeff King
2015-02-23 19:08 ` Junio C Hamano
2015-02-23 20:31 ` Junio C Hamano
2015-02-23 16:17 ` [PATCH 3/4] option-strings: use OPT_PATH Michael J Gruber
2015-02-23 18:26 ` Jeff King
2015-02-23 21:07 ` Junio C Hamano
2015-02-23 21:12 ` Jeff King
2015-02-23 16:17 ` [PATCH 4/4] checkout: --to requires directory Michael J Gruber
2015-02-24 0:34 ` [PATCH] " Duy Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1424707497.git.git@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@gmail.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).