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

Re: [PATCHv3 1/2] Documentation: clarify fnmatch behavior in gitignore

From
Drew Northup <drew.northup@maine.edu>
Date
Apr 6, 2011, 12:48 UTC
Message-ID
<1302094097.25009.6.camel@drew-northup.unet.maine.edu>
In-Reply-To
<4D9B9B15.8040600@redhat.com>
On Tue, 2011-04-05 at 16:43 -0600, Eric Blake wrote:
Show 13 quoted lines
> On 04/05/2011 04:34 PM, Junio C Hamano wrote:
> >>   - Otherwise, git treats the pattern as a shell glob suitable
> >> -   for consumption by fnmatch(3) with the FNM_PATHNAME flag:
> >> -   wildcards in the pattern will not match a / in the pathname.
> >> -   For example, "Documentation/{asterisk}.html" matches
> >> +   for consumption by fnmatch(3) with the FNM_PATHNAME but not
> >> +   FNM_PERIOD flags: wildcards in the pattern will match leading
> >> +   . but not / in pathnames.  For example,
> > 
> > Does this format correctly with asciidoc?
> 
> No idea - I'm not an asciidoc whiz.  How would I tell (or can someone
> else offer some advice)?

For my ongoing project of rearranging some of the Gitweb documentation I just went ahead and made a script based on the Documentation/Makefile and run that against my in-progress work. (In that case I'll get around to munging the local Makefile later if I decide I'm really that pleased with what I've [re-]written.) This way I can incrementally become an Asciidoc genius if I really need to and remain a mortal otherwise.

-- 
-Drew Northup
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59
Previous: Eric Blake
Message 6 of 6 in “[PATCHv3 1/2] Documentation: clarify fnmatch behavior in gitignore”
  1. Eric BlakeApr 5, 2011
  2. 2/2 Documentation: enhance gitignore whitelist exampleEric Blake, Apr 5, 2011
  3. Junio C HamanoApr 5, 2011
  4. Junio C HamanoApr 5, 2011
  5. Eric BlakeApr 5, 2011
  6. Drew NorthupApr 6, 2011

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.