From: Jeff King <peff@peff.net>
To: M Lewis <picevio@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: GitAttributes feature export-ignore works, but -export-ignore (with dash) should also work
Date: Fri, 22 Nov 2019 01:54:41 -0500 [thread overview]
Message-ID: <20191122065441.GA23225@sigill.intra.peff.net> (raw)
In-Reply-To: <1e9e3272-f97b-9944-817f-778deec2e65c@gmail.com>
On Thu, Nov 21, 2019 at 07:45:44AM -0800, M Lewis wrote:
> Thank you for taking this on. I tried your suggestion copied below. The
> 'needed_a' (and _b) directories appear in the archive but unfortunately they
> are empty. We need the contents of the directories in the archive.
Ah, I assumed they were files. You should be able to handle that by
setting and clearing the attributes using the "**" syntax. Something
like:
/subdir/** export-ignore
/subdir/keep/ -export-ignore
/subdir/keep/** -export-ignore
would work to re-enable "one" and all of its contents. Or if everything
you want to toggle is at the top-level of the subdirectory, you can use
"*" to avoid assigning export-ignore to all of the recursive paths in
the first place, like:
/subdir/* export-ignore
/subdir/keep/ -export-ignore
-Peff
prev parent reply other threads:[~2019-11-22 6:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-20 16:44 GitAttributes feature export-ignore works, but -export-ignore (with dash) should also work M Lewis
2019-11-21 7:58 ` Jeff King
2019-11-21 13:29 ` Junio C Hamano
2019-11-22 6:59 ` Jeff King
2019-11-21 15:45 ` M Lewis
2019-11-22 6:54 ` Jeff King [this message]
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=20191122065441.GA23225@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=picevio@gmail.com \
/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).