News for hackers. Stuff that matters.
Re:Conditionally setting your gitconfig by selfhoster11 on Tuesday August 24, 2021 @08:26AM (#28287884)
I'm pretty sure that it's a 10-20 minute job to write a Git subcommand wrapper that checks out a work vs personal project, and then symlinks the correct config file for the repo, if someone chose to go this route.
Re:Conditionally setting your gitconfig by OJFord on Tuesday August 24, 2021 @10:09AM (#28289055)
Sure, but that's more like a solution for implementing something like in OP for if it didn't exist in git itself, not the 'why not just use per-repo config' that I responded to.
Re:Conditionally setting your gitconfig by shawxe on Tuesday August 24, 2021 @09:16AM (#28288430)
But... how is this easier than the solution proposed by OP?
Re:Conditionally setting your gitconfig by selfhoster11 on Tuesday August 24, 2021 @09:19AM (#28288461)
It's not, but it's my response to the problem discussed by the parent comment.