There are some internal and some external changes, but the one that stroke me as most useful for me is conditional configurations.
Conditional includes, means that you can preset in your ~/.gitconfig some conditions, like
[includeIf "gitdir:~/work/"]
path = .gitconfig-work
[includeIf "gitdir:~/play/"]
path = .gitconfig-play
Now you can put whatever options you want into those files:$ cat ~/.gitconfig-work
[user]
name = Serious Q. Programmer
email = serious.programmer@business.example.com
$ cat ~/.gitconfig-play
[user]
name = Random J. Hacker
email = rmsfan1979@example.com
After that, you'll be able to commit away in any project in your computer, and git will do The Proper Thing. This is just awesome, that all the hackery I had to simulate this can now go away. I'm going to add this to my configs NOW. :)
As this is a git post, I'll take the opportunity to mention this blogpost about filter branch. Also, this one about packfiles. Both are advanced topics, but you know..... it's fun :)
No hay comentarios:
Publicar un comentario