aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2013-07-25 15:23:04 +0200
committerMathias Bynens <mathias@qiwi.be>2013-07-25 15:23:04 +0200
commitfd2e47d44775590b4c46a4fc2f5a10a1b9dc891c (patch)
treefb6ef31d4fde3c90278bb3226777a89c7dbb4b3e
parent96da7b6ba15a64abea7c136737e9f744fa3823ea (diff)
downloaddotfiles-fd2e47d44775590b4c46a4fc2f5a10a1b9dc891c.tar.gz
dotfiles-fd2e47d44775590b4c46a4fc2f5a10a1b9dc891c.tar.bz2
dotfiles-fd2e47d44775590b4c46a4fc2f5a10a1b9dc891c.zip
.gitconfig: Improve display of astral Unicode symbols in diffs
Thanks to @holman for the tip: https://speakerdeck.com/holman/more-git-and-github-secrets?slide=38
-rw-r--r--.gitconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitconfig b/.gitconfig
index 409e6ab..29f4941 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -4,7 +4,7 @@
# View the current working tree status using the short format
s = status -s
# Show the diff between the latest commit and the current state
- d = !"git diff-index --quiet HEAD -- || clear; git diff --patch-with-stat"
+ d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
# `git di $number` shows the diff between the state `$number` revisions ago and the current state
di = !"d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD -- || clear; d"
# Pull in remote changes for the current repository and all its submodules