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

Re: [QUESTION] How to add new configuration variable

From
Carlo Arenas <carenas@gmail.com>
Date
Sep 17, 2021, 16:21 UTC
Message-ID
<CAPUEspgv49ppMbwHMPjF6_4FBU1_tYk_DdXXOTDuWwAx74UL8Q@mail.gmail.com>
In-Reply-To
<9f3cc3f0-36db-f7e5-de1d-2c8c9f246884@gmail.com>

you might want this in --global instead, but assuming it is ok to be repository specific:

$ git config foobar.something baz
and in your script
  baz=$(git config foobar.something)
Carlo
Previous: Junio C Hamano
Message 5 of 5 in “[QUESTION] How to add new configuration variable”
  1. Bagas SanjayaSep 17, 2021
  2. Konstantin RyabitsevSep 17, 2021
  3. Đoàn Trần Công DanhSep 17, 2021
  4. Junio C HamanoSep 17, 2021
  5. Carlo ArenasSep 17, 2021

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.