Mercurial > dotfiles
changeset 454:54bdd1f0f873
Make OS-specific configs for Git.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Nov 2018 09:55:24 -0800 |
parents | 97a94dacfd54 |
children | 1172b8484c68 |
files | git/gitconfig git/gitconfig-MacOSX git/gitconfig-Windows_NT git/gitignore |
diffstat | 3 files changed, 30 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/git/gitconfig Thu Aug 30 10:05:43 2018 -0700 +++ b/git/gitconfig Tue Nov 13 09:55:24 2018 -0800 @@ -1,26 +1,20 @@ -[user] - name = Ludovic Chabant - email = ludovic@chabant.com - -[push] -default = simple - -[alias] -lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all -lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all -lg = !"git lg1" - -[include] -path = gitconfig-local -[difftool "sourcetree"] - cmd = opendiff \"$LOCAL\" \"$REMOTE\" - path = -[mergetool "sourcetree"] - cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" - trustExitCode = true -[core] - excludesfile = /Users/abdul/.gitignore_global -[commit] - template = /Users/abdul/.stCommitMsg - -# vim: ft=gitconfig +[user] + name = Ludovic Chabant + email = ludovic@chabant.com + +[push] + default = simple + +[alias] + tags = tag -l + branches = branch -a + remotes = remote -v + lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all + lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all + lg = !"git lg1" + +[include] + path = gitconfig-${OS} + path = gitconfig-local + +# vim:ft=gitconfig:ts=2:sw=2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/git/gitconfig-MacOSX Tue Nov 13 09:55:24 2018 -0800 @@ -0,0 +1,9 @@ + +[difftool "sourcetree"] + cmd = opendiff \"$LOCAL\" \"$REMOTE\" + path = +[mergetool "sourcetree"] + cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" + trustExitCode = true + +# vim:ft=gitconfig:ts=2:sw=2