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

Re: [PATCH v2] config: allow ~/ and ~user/ in include.path value

From
Jeff King <peff@peff.net>
Date
Apr 26, 2012, 06:19 UTC
Message-ID
<20120426061923.GA22819@sigill.intra.peff.net>
In-Reply-To
<xmqqwr53bmc7.fsf@junio.mtv.corp.google.com>
On Wed, Apr 25, 2012 at 01:14:32PM -0700, Junio C Hamano wrote:
Show 14 quoted lines
> > +found. The value of `include.path` is subject to tilde expansion: `~/`
> > +is expanded to the value of `$HOME`, and `~user/` to the specified
> > +user's home directory. See below for examples.
> >  
> >  Example
> >  ~~~~~~~
> > @@ -122,6 +124,7 @@ Example
> >  	[include]
> >  		path = /path/to/foo.inc ; include by absolute path
> >  		path = foo ; expand "foo" relative to the current file
> > +		path = ~/foo ; expand "foo" in your $HOME directory
> 
> Modulo s/~/{tilde}/ in the body text (but not in the displayed example),
> looked good to me, so I queued with two amends.
Thanks, I forgot about that.

I'd like to eventually stop building the documentation with no-inline-literal. It was an asciidoc7 compatibility thing, but we can probably drop that now. However, I suspect that would require us to simultaneously convert all of the `{tilde}` uses back into `~`.

-Peff
Previous: Junio C Hamano
Message 6 of 6 in “config: allow ~/ and ~user/ in include.path value”
  1. config: allow ~/ and ~user/ in include.path valueMatthieu Moy, Apr 24, 2012
  2. config: allow ~/ and ~user/ in include.path valueMatthieu Moy, Apr 24, 2012
  3. Jeff KingApr 25, 2012
  4. Matthieu MoyApr 25, 2012
  5. Junio C HamanoApr 25, 2012
  6. Jeff KingApr 26, 2012

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.