git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Storing private config files in .git directory?
@ 2024-01-07 13:03 Stefan Haller
  2024-01-08 18:20 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stefan Haller @ 2024-01-07 13:03 UTC (permalink / raw)
  To: git

Our git client (lazygit) has a need to store per-repo config files that
override the global one, much like git itself. The easiest way to do
that is to store those in a .git/lazygit.cfg file, and I'm wondering if
there's any reason why this is a bad idea?

Another alternative would be to store the config values in .git/config
(that's the path taken by git gui, for example), but since our config
file format is yaml, this would require translation. It would be trivial
for scalar values such as int or string, but I'm not sure how well this
would work for more complex settings like lists of objects.

Any thoughts?

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-12  6:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-07 13:03 Storing private config files in .git directory? Stefan Haller
2024-01-08 18:20 ` Junio C Hamano
2024-01-10 11:08   ` Jeff King
2024-01-11 13:28     ` Stefan Haller
2024-01-12  6:56       ` Jeff King
2024-01-08 18:56 ` Konstantin Ryabitsev
2024-01-08 19:48 ` Marc Branchaud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).