summaryrefslogtreecommitdiffstats
path: root/.gitconfig
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-10-10 16:18:47 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-10-10 16:20:54 +0200
commitac8ad37e9cec7b05f0f466ea10a2a052b9eb3d17 (patch)
tree2be698082a72cba4eadebf50b9be837f3026a4ea /.gitconfig
parent4ddb5e1770cb46a0a8e931dee9a556d3a5ebb5e5 (diff)
downloaddotfiles-ac8ad37e9cec7b05f0f466ea10a2a052b9eb3d17.tar.gz
dotfiles-ac8ad37e9cec7b05f0f466ea10a2a052b9eb3d17.tar.xz
dotfiles-ac8ad37e9cec7b05f0f466ea10a2a052b9eb3d17.zip
Git config: pwc alias displaying also underlying changes in patches
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index b14b149..51b2623 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -32,6 +32,13 @@
git send-email --subject-prefix=\"${subjpfx}\" \"$@\";\
}; git_se"
wc = whatchanged
+ pwc = "!git_pwc() {\
+ git wc --color \"$@\" | subwc | ${PAGER};\
+ }; git_pwc"
+ # http://www.jukie.net/bart/blog/pimping-out-git-log
+ lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
+ --abbrev-commit --date=relative
+
[core]
editor = vim