🏡 index : github.com/captn3m0/dotfiles.git

author Abhay Rana <me@captnemo.in> 2016-06-27 16:39:15.0 +05:30:00
committer Abhay Rana <me@captnemo.in> 2016-06-27 16:39:15.0 +05:30:00
commit
91dab253953924983ddb7c2d8e5ab8d6031b34a6 [patch]
tree
ee9d23c546e304c971608b52e5121daed2e3b3a3
parent
62b0d5f00c37dfffe3a49aefe7278401ef9b49d6
download
91dab253953924983ddb7c2d8e5ab8d6031b34a6.tar.gz

[git] Minor changes to git config

- Start using git diff-so-fancy

Diff

 files/git/.gitconfig | 30 +++++++++++++++++++++---------
 1 file changed, 21 insertions(+), 9 deletions(-)

diff --git a/files/git/.gitconfig b/files/git/.gitconfig
index c7fa56d..1b24e76 100644
--- a/files/git/.gitconfig
+++ a/files/git/.gitconfig
@@ -1,13 +1,13 @@
[user]
	name = Abhay Rana
	email = me@captnemo.in
	signingkey = B8963685
    name = Abhay Rana
    email = me@captnemo.in
    signingkey = B8963685
[github]
	user = captn3m0
	token = 
    user = captn3m0
[alias]
    rod = rebase origin/development
    rom = rebase origin/master
    rum = rebase upstream/master
    pom = push origin master
    pod = push origin development
    pogh = push origin gh-pages
@@ -17,9 +17,13 @@
    fo  = fetch origin
    co  = checkout
    ci  = commit
[rerere]
    enabled = true
[color]
	diff = always
	branch = always
    branch = auto
    diff   = auto
    status = auto
    ui     = true
[alias]
    l50 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m  %-50s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R"
    l80 = "!git log --abbrev-commit --date=short --pretty=format:'%x00%h%x00%cd%x00%s%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m \\033[32m%s\\033[0m  %-80s \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, $3, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$4), $5, $6 }' | less -R"
@@ -27,6 +31,14 @@
    lg80 = "!git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-80s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{79}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R"
    lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %C(blue)(%an <%ae>)%Creset' --abbrev-commit --date=relative
[help]
	autocorrect = 0
    autocorrect = 10
[push]
	default = current
    default = current
[color "diff-highlight"]
    oldNormal = red bold
    oldHighlight = red bold 52
    newNormal = green bold
    newHighlight = green bold 22
[core]
    # https://github.com/so-fancy/diff-so-fancy
    pager = diff-so-fancy | less --tabs=4 -RFX