summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2017-06-27 23:00:17 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2017-06-27 23:02:52 (GMT)
commitd0470a9b26b2feac8846ee8ce83c79a3da1277bc (patch)
tree9c5a49c3336f007f9e7642fdb35dc95f0af90682
parentc8be7f9ae91a463d94121891d0ec1b70b3c9f667 (diff)
downloaddot-files-master.zip
dot-files-master.tar.gz
dot-files-master.tar.bz2
gitconfig: add 'redate','drypushlog' and 'sendemail' settingsHEADmaster
-rw-r--r--gitconfig19
1 files changed, 17 insertions, 2 deletions
diff --git a/gitconfig b/gitconfig
index 0099d47..d7374b0 100644
--- a/gitconfig
+++ b/gitconfig
@@ -54,10 +54,8 @@
dist = "!A=$(basename $(pwd))-$(git describe --tags --always)-$(date +%F); git ls-files -z | tar --null --files-from=- -cJf $A.tar.xz --transform \"s;^;$A/;\" && echo $A.tar.xz"
#dist = "!A=$(basename $(pwd)tar -cJf $(basename $(pwd))-$().tar.xz --transform \"s;^;$(basename $(pwd))-$(date +%F-%H%M%S)/;\" $(git ls) && echo $(basename $(pwd))-$(date +%F-%H%M%S).tar.xz"
redate = "!D=$(date -R); git commit --amend --date \"$D\" "
- drypushlog = "!l=$(git push --porcelain --dry-run | awk 'NR==2 { print $2 }') ; git log $l"
drypushlol = "!l=$(git push --porcelain --dry-run | awk 'NR==2 { print $2 }') ; git log --oneline $l"
-
[push]
default = simple
@@ -78,3 +76,20 @@ modulepath = /usr/lib/apache2/modules
## And install the package 'odt2txt'.
[diff "odf"]
textconv=odt2txt
+
+[sendemail]
+ # No password set:
+ # Upon first 'push' git will ask for the password and store it
+ # in git-credentials.
+ smtpserver = smtp.gmail.com
+ smtpuser = assafgordon@gmail.com
+ smtpencryption = tls
+ chainreplyto = false
+ smtpserverport = 587
+ suppresscc = self
+
+[credential]
+ # Store credentials on disk
+ # by default in ~/.git-credentials
+ # see: https://git-scm.com/docs/git-credential-store
+ helper = store