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

Re: [RFC] ident: support per-path configs by matching the path against a pattern

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 10, 2015, 21:07 UTC
Message-ID
<xmqqlhenk9gd.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150710205821.GB1181@peff.net>
Jeff King <peff@peff.net> writes:
Show 14 quoted lines
> On Fri, Jul 10, 2015 at 01:23:07PM -0700, Junio C Hamano wrote:
>
>> > -	if (!strcmp(var, "include.path"))
>> > -		ret = handle_path_include(value, inc);
>> > +	if (!parse_config_key(var, "include", &cond, &cond_len, &key) &&
>> > +	    include_condition_is_true(cond, cond_len)) {
>> 
>> I really like these two lines.
>> 
>> Whoever designed that parse_config_key() interface either is a
>> genious or had a foresight with a crystal ball, or perhaps both.
>
> Heh. I peeked at the archive, and I think it was actually designed by
> committee. Perhaps we are greater than the sum of our parts? ;)
It does not look like a camel, though ;-).
Thanks.  Let's see if Sebastian finds the direction satisfactory.
Previous: Jeff King
Message 7 of 7 in “[RFC] ident: support per-path configs by matching the path against a pattern”
  1. Sebastian SchuberthJul 10, 2015
  2. Junio C HamanoJul 10, 2015
  3. Jeff KingJul 10, 2015
  4. Jeff KingJul 10, 2015
  5. Junio C HamanoJul 10, 2015
  6. Jeff KingJul 10, 2015
  7. Junio C HamanoJul 10, 2015

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.