djordan
djordan

Reputation: 353

How to make git-config to use spaces instead of tabs

When I use git-config to edit my .gitconfig file, it inserts tabs. Is there a way to make it insert spaces instead of tabs?

(The motivation is that when I hand-edit the file, I always insert spaces. Git's use of tabs makes the file inconsistent. Of course I could just use tabs myself, but that's just ridiculous.)

Upvotes: 23

Views: 1289

Answers (1)

dahlbyk
dahlbyk

Reputation: 77530

This was answered above in a comment by @Wolf, but to reiterate: this is hard-coded in Git's write_pair (formerly store_write_pair) implementation, which was most recently refactored in 2017 and originally implemented in 2005.

Upvotes: 12

Related Questions