]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'kh/maintenance-use-xdg-when-it-should'
authorJunio C Hamano <gitster@pobox.com>
Fri, 26 Jan 2024 16:54:47 +0000 (08:54 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Jan 2024 16:54:47 +0000 (08:54 -0800)
When $HOME/.gitignore is missing but XDG config file available, we
should write into the latter, not former.  "git gc" and "git
maintenance" wrote into a wrong "global config" file, which have
been corrected.

* kh/maintenance-use-xdg-when-it-should:
  maintenance: use XDG config if it exists
  config: factor out global config file retrieval
  config: rename global config function
  config: format newlines


Trivial merge