From: "René Scharfe" <l.s.r@web.de>
To: suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [PATCH] git-archive: accept --owner and --group like GNU tar
Date: Thu, 4 Jan 2018 17:59:50 +0100 [thread overview]
Message-ID: <f7654cd9-2cd0-0775-3b10-8e3dc1a66dae@web.de> (raw)
In-Reply-To: <5A4D9089.3050209@hiroshima-u.ac.jp>
Am 04.01.2018 um 03:25 schrieb suzuki toshiya:
> Taking a glance on parse-options.h, I could not find the
> existing class collecting the operands as an array (or
> linked list) from multiple "--xxx=yyy" options. Similar
> things might be the collecting the pathnames to pathspec
> structure. Should I write something with OPTION_CALLBACK?
There is OPT_STRING_LIST; Documentation/technical/api-parse-options.txt
says:
`OPT_STRING_LIST(short, long, &struct string_list, arg_str, description)`::
Introduce an option with string argument.
The string argument is stored as an element in `string_list`.
Use of `--no-option` will clear the list of preceding values.
I don't know if it's a good idea, but perhaps we don't even need a new
option. We could change how pathspecs of untracked files are handled:
Instead of aborting we could include them in the archive. (Sounds like
the simplest possible interface, but may have practical problems.)
René
next prev parent reply other threads:[~2018-01-04 17:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-29 14:05 [PATCH] git-archive: accept --owner and --group like GNU tar suzuki toshiya
2018-01-01 18:29 ` René Scharfe
2018-01-02 0:32 ` Perry Hutchison
2018-01-04 0:43 ` René Scharfe
[not found] ` <df39f62558314cf6a9d9df3e23f31dd8@OS2PR01MB1147.jpnprd01.prod.outlook.com>
2018-01-02 6:58 ` suzuki toshiya
2018-01-02 21:36 ` René Scharfe
[not found] ` <59a1fc058278463996ed68c970a5e08a@OS2PR01MB1147.jpnprd01.prod.outlook.com>
2018-01-04 1:29 ` suzuki toshiya
[not found] ` <955dae095d504b00b3e1c8a956ba852a@OS2PR01MB1147.jpnprd01.prod.outlook.com>
2018-01-04 2:25 ` suzuki toshiya
2018-01-04 16:59 ` René Scharfe [this message]
2018-01-04 18:22 ` Junio C Hamano
2018-01-05 13:54 ` René Scharfe
2018-01-05 19:10 ` Junio C Hamano
[not found] ` <2112f9c245d64f4e89361df7e9de9374@OS2PR01MB1147.jpnprd01.prod.outlook.com>
2018-01-05 4:23 ` suzuki toshiya
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f7654cd9-2cd0-0775-3b10-8e3dc1a66dae@web.de \
--to=l.s.r@web.de \
--cc=git@vger.kernel.org \
--cc=mpsuzuki@hiroshima-u.ac.jp \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).