Re: [PATCH] git-archive: accept --owner and --group like GNU tar
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 4, 2018, 18:22 UTC
- Message-ID
- <xmqqmv1tfpqh.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <f7654cd9-2cd0-0775-3b10-8e3dc1a66dae@web.de>
René Scharfe <l.s.r@web.de> writes:
> 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.)
One practical problem is that users who do this
$ git archive HEAD Documentation/ | tar tf -
would be expecting (at least) two different things, depending on the situation they are in.
So at least you'd need an "--include-untracked" option, I guess.