]> git.ipfire.org Git - thirdparty/git.git/commit - worktree.c
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)
commit12ee4ed50656a8d21ac86204d5ae2b7888b377ee
tree8b1475f25b8fa78d1da6535ddb9607943ad8801c
parent2be9ccf23e0592b83b78e719574e580e79db0375
parent74e12192e6d2c7747c411261aee247a7479d5703
Merge branch 'kh/maintenance-use-xdg-when-it-should'

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