summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2016-08-24 22:32:00 (GMT)
committerAssaf Gordon <assafgordon@gmail.com>2016-08-24 22:32:00 (GMT)
commit0ee56eca73257d741b3330e1bb518b2b5e9b7125 (patch)
tree5ba75b954c09a56b5fa71eef459f96297a046d9b
parent632770300e469815526cef71c8f31d8fc2113672 (diff)
downloaddot-files-0ee56eca73257d741b3330e1bb518b2b5e9b7125.zip
dot-files-0ee56eca73257d741b3330e1bb518b2b5e9b7125.tar.gz
dot-files-0ee56eca73257d741b3330e1bb518b2b5e9b7125.tar.bz2
gitconfig: add 'redate' alias
'git redate' will update the date of the most recent commit to the current time.
-rw-r--r--gitconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitconfig b/gitconfig
index dd6eb83..057e674 100644
--- a/gitconfig
+++ b/gitconfig
@@ -53,6 +53,7 @@
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
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\" "
[push]
default = simple