summary refs log tree commit diff
path: root/gitconfig
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2015-07-16 14:37:35 -0700
committerFranck Cuny <franckcuny@gmail.com>2015-07-16 14:37:35 -0700
commit4535c9e32de235fdd6d1c4d939fc072cd6ee5f86 (patch)
tree9cb6e857be9136bdea8a0e597b8c4b2e95b50f89 /gitconfig
parentFetch public ssh keys from GitHub. (diff)
downloademacs.d-4535c9e32de235fdd6d1c4d939fc072cd6ee5f86.tar.gz
[gitconfig] use tab and add a new alias.
the new alias is for git log (with git l) to show short log info
Diffstat (limited to 'gitconfig')
-rw-r--r--gitconfig44
1 files changed, 23 insertions, 21 deletions
diff --git a/gitconfig b/gitconfig
index 50d6bfd..5ec928b 100644
--- a/gitconfig
+++ b/gitconfig
@@ -1,33 +1,35 @@
 [color]
-        status = auto
-        branch = auto
-        diff = auto
+	status = auto
+	branch = auto
+	diff = auto
 
 [i18n]
-        commitencoding = utf-8
+	commitencoding = utf-8
 
 [alias]
-        amend = commit --amend
-        br = branch
-        ci = commit
-        co = checkout
-        fixup = rebase -i HEAD~5
-        g = "grep --heading --break"
-        lt = log --oneline --graph --all
-        pending = !GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD) && git log origin/$GIT_CURRENT_BRANCH..$GIT_CURRENT_BRANCH --oneline
-        pr = pull --rebase
-        st = status  -s
-        stat = show HEAD --stat
+	amend = commit --amend
+	br = branch
+	ci = commit
+	co = checkout
+	fixup = rebase -i HEAD~5
+	g = "grep --heading --break"
+	lt = log --oneline --graph --all
+	l = log --pretty=format:'%<(10)%h %<(20)%an %s'
+	pending = !GIT_CURRENT_BRANCH=$(git name-rev --name-only HEAD) && git log origin/$GIT_CURRENT_BRANCH..$GIT_CURRENT_BRANCH --oneline
+	pr = pull --rebase
+	st = status  -s
+	stat = show HEAD --stat
+
 [core]
-        whitespace = trailing-space,space-before-tab
-        excludesfile = ~/.gitignore
-        pager = less -+$LESS -R
+	whitespace = trailing-space,space-before-tab
+	excludesfile = ~/.gitignore
+	pager = less -+$LESS -R
 
 [branch]
-        autosetuprebase = remote
+	autosetuprebase = remote
 
 [include]
-        path = ~/.gitconfig.private
+	path = ~/.gitconfig.private
 
 [http]
-        postBuffer = 524288000
+	postBuffer = 524288000