From: Junio C Hamano Date: Thu, 22 Oct 2026 23:29:18 GMT Subject: Re: [RFC/PATCH] config: honor file permission bits Message-ID: In-Reply-To: "brian m. carlson" writes: > I don't personally make that file read-only, so it doesn't affect me at > all; instead, I just overwrite it with my personal configuration every > time I deploy my dotfiles. > I don't personally make that file read-only, so it doesn't affect me at > all; instead, I just overwrite it with my personal configuration every > time I deploy my dotfiles. Well, I deploy my dotfiles from the freshly built one (the sources of dotfiles are kept elsewhere under version control), too, but when "installing", I make them read-only, just like all other "installed" files like the contents of my ~/bin/ directory. My personal makefiles have "dry-run" support to tell me what the changes are in the version I am about to install in 'patch' form, and that is how I noticed that "git config" allowed to make such a mistake, even though the file is read-only, to some failed experiment I made earlier.