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

Re: [BUG] PREFIX environment variable ignored by git config --system

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 30, 2025, 21:57 UTC
Message-ID
<xmqqldusarsa.fsf@gitster.g>
In-Reply-To
<001801db72af$20a35560$61ea0020$@nexbridge.com>
<rsbecker@nexbridge.com> writes:
Show 14 quoted lines
> On January 29, 2025 7:24 PM, Junio C Hamano wrote:
>><rsbecker@nexbridge.com> writes:
>>
>>> This appears to do exactly what I am looking for. When I create that
>>> file, git picks up config values from that file.The question is, is
>>> this environment variable actually sanctioned or is it just coincidence?
> It does
>>exactly what I am looking for.
>>
>>How about reading "git config --help"?
>
> Yup. It's there, thanks. So should I figure out how to sync the website with
> this
> or ignore it?
It depends on how good a friend you are to them, right ;-)?
https://github.com/progit/progit2/issues?q=is%3Aissue%20state%3Aopen%20PREFIX

seems to say that the issue has not been reported, and doing so might be a good first step.

We'd probably want a bit of history digging to see if we ever supported "$PREFIX/etc/gitconfig" before opening that issue, though. How to phrase the issue would be different between "we used to but no longer support this since version X" and "we never supported such a variable". This is a #leftoverbit for those without a lot of coding skills but patience, being good at using "git blame", and a good notetaking skills to summarize findings, are needed.

Another good thing to do is to match the environment variables and their descriptions we have in the output from "git help git" with that page. We may have acquired a few more of them since that page of the book was written 10 years ago, for example. This would be a good #leftoverbit for those without any coding experience but want to improve the documentation that exists in the overall ecosystem.

Thanks.
Previous: Ben KnobleNext: rsbecker@nexbridge.com
Message 13 of 15 in “[BUG] PREFIX environment variable ignored by git config --system”
  1. rsbecker@nexbridge.comJan 29, 2025
  2. Junio C HamanoJan 29, 2025
  3. rsbecker@nexbridge.comJan 29, 2025
  4. Junio C HamanoJan 29, 2025
  5. rsbecker@nexbridge.comJan 29, 2025
  6. Junio C HamanoJan 29, 2025
  7. rsbecker@nexbridge.comJan 29, 2025
  8. Junio C HamanoJan 29, 2025
  9. rsbecker@nexbridge.comJan 30, 2025
  10. Junio C HamanoJan 30, 2025
  11. rsbecker@nexbridge.comJan 30, 2025
  12. Ben KnobleJan 30, 2025
  13. Junio C HamanoJan 30, 2025
  14. rsbecker@nexbridge.comJan 29, 2025
  15. Junio C HamanoJan 29, 2025

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.