Skip to content

Commit 5c583a6

Browse files
committed
delete deprecated logmerges and improve amend-date
1 parent 9e1fede commit 5c583a6

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

bin/git-amend-date

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#!/bin/sh
2-
2+
#
3+
# Copyright (c) 2015
4+
# Author: Victor Arribas <[email protected]>
5+
# License: GPLv3 <http://www.gnu.org/licenses/gpl-3.0.html>
6+
#
37
# Change the commit and author date of last git commit (ammend).
48
# Usage: git ammend-date <commit date> [author date]
59
#
@@ -23,7 +27,7 @@ fi
2327
export GIT_COMMITTER_DATE
2428
export GIT_AUTHOR_DATE
2529

26-
git commit --amend --date "$GIT_AUTHOR_DATE"
30+
git commit --amend --allow-empty --date "$GIT_AUTHOR_DATE"
2731

2832
unset GIT_COMMITTER_DATE
2933
unset GIT_AUTHOR_DATE

bin/git-logmerges

-3
This file was deleted.

0 commit comments

Comments
 (0)