Paul Tan <pyokagan@xxxxxxxxx> writes: > Hi Luis, > > On Fri, Mar 6, 2015 at 7:41 AM, Luis Ressel <aranea@xxxxxxxx> wrote: >> Okay, I've had a look at Paul's patch for this. Sorry again for the >> dupe, I must've missed it before. I guess I'll attempt another >> microproject. >> >> However, I feel like my patch is really all that's neccessary; I don't >> think we should try to use both files if they exist -- I consider >> Paul's approach to be a bit overcomplicated. >> >> My patch still uses ~/.git-credentials as a default location, which >> should be sufficient for compability. > > Indeed, that was my initial plan for implementation as well[1]. Matthieu, > however, wanted the behavior to follow that of git-config[2]. The fact that I suggested doing it this way does not mean it _has_ to be done this way. Decisions are taken by trying to reach a consensus with discussion, so everyone is welcome to argue. I don't remember all the discussions we had about the ~/.gitconfig, but one issue with considering only one file is if you create ~/.git/config/foo and initially make sure you don't have ~/.gitfoo, and then one tool creates ~/.gitfoo (either an old Git, or another tool trying to edit the config file), then you totally break your configuration. I argued for not taking backward compatibility too much into account in another thread, but that was about precedence of one file over the other which is far less important. Here, any tool creating even an empty home file would break your configuration. That also breaks the least surprise principle if you have a ~/.gitfoo file that you forgot about: edit ~/.config/git/foo, nothing is taken into account, at all (or the other way around, depending on the precedence you choose). I remember loosing some time with two vlc configuration files like this. -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html