Re: GitAttributes feature export-ignore works, but -export-ignore (with dash) should also work
- From
Jeff King <peff@peff.net>
- Date
- Nov 22, 2019, 06:54 UTC
- Message-ID
- <20191122065441.GA23225@sigill.intra.peff.net>
- 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