git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: M Lewis
Message 6 of 6 in “GitAttributes feature export-ignore works, but -export-ignore (with dash) should also work”
  1. M LewisNov 20, 2019
  2. Jeff KingNov 21, 2019
  3. Junio C HamanoNov 21, 2019
  4. Jeff KingNov 22, 2019
  5. M LewisNov 21, 2019
  6. Jeff KingNov 22, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.