We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e1fede commit 5c583a6Copy full SHA for 5c583a6
bin/git-amend-date
@@ -1,5 +1,9 @@
1
#!/bin/sh
2
-
+#
3
+# Copyright (c) 2015
4
+# Author: Victor Arribas <[email protected]>
5
+# License: GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
6
7
# Change the commit and author date of last git commit (ammend).
8
# Usage: git ammend-date <commit date> [author date]
9
#
@@ -23,7 +27,7 @@ fi
23
27
export GIT_COMMITTER_DATE
24
28
export GIT_AUTHOR_DATE
25
29
26
-git commit --amend --date "$GIT_AUTHOR_DATE"
30
+git commit --amend --allow-empty --date "$GIT_AUTHOR_DATE"
31
32
unset GIT_COMMITTER_DATE
33
unset GIT_AUTHOR_DATE
bin/git-logmerges
0 commit comments