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

Re: What's cooking in git.git (Jan 2017, #06; Tue, 31)

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 1, 2017, 18:40 UTC
Message-ID
<xmqq8tpppxef.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170201110851.GA475@pks-pc>
Patrick Steinhardt <ps@pks.im> writes:
Show 5 quoted lines
> I just tried to write additional tests to exercise this in our
> config-tests by using `git config --get-urlmatch` with multiple
> `http.extraheader`s set. I've been stumped that it still didn't
> work correctly with my patch, only the last value was actually
> ever returned.

I think that is very much in line with "git config --get" works, and "--get-urlmatch" being an enhancement of "--get", I would expect that "--get-urlmatch" to follow the usual "the last one wins" rule.

If you want to see _all_ values for a multi-valued variable, you would say "git config --get-all". IIUC, there currently is no "--get-all-urlmatch", but there may need one. I dunno.

Previous: Patrick Steinhardt
Message 11 of 11 in “What's cooking in git.git (Jan 2017, #06; Tue, 31)”
  1. Junio C HamanoJan 31, 2017
  2. color_parse_mem: allow empty color specJeff King, Feb 1, 2017
  3. Jacob KellerFeb 1, 2017
  4. Duy NguyenFeb 2, 2017
  5. document behavior of empty color nameJeff King, Feb 2, 2017
  6. Duy NguyenFeb 3, 2017
  7. Jeff KingFeb 3, 2017
  8. Junio C HamanoFeb 3, 2017
  9. Jeff KingFeb 4, 2017
  10. Patrick SteinhardtFeb 1, 2017
  11. Junio C HamanoFeb 1, 2017

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.