summaryrefslogtreecommitdiff
path: root/git/.gitconfig
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-12-17 18:37:47 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-12-17 18:37:47 +0100
commitee96831c8b9ec7c5a77466f888e792d0f43103d5 (patch)
tree43f0bcaf63e88ec3f9e15e49e65af61c4cf7e8a3 /git/.gitconfig
parent77cd142cbfceda8d4fe644acff46b7f8a3463e9e (diff)
[vim] Add mapping to cycle quickfix more easily
Diffstat (limited to 'git/.gitconfig')
-rw-r--r--git/.gitconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/.gitconfig b/git/.gitconfig
index 2f0bbb3..f44fe0e 100644
--- a/git/.gitconfig
+++ b/git/.gitconfig
@@ -8,7 +8,7 @@
templatedir = ~/.git_template
[alias]
ctags = !.git/hooks/ctags
- saveandsync = !git add . && git commit -m "Update" && git push origin master
+ saveandsync = !git add . && git diff --cached --exit-code || git commit -m "Update" && git push origin master
[http]
sslverify = false
[commit]