diff options
-rw-r--r-- | PKGBUILD | 5 | ||||
-rw-r--r-- | changelog | 6 |
2 files changed, 6 insertions, 5 deletions
@@ -56,7 +56,7 @@ _gitLogByDay() { local NEXT=$(date +%F) local SINCE="1970-01-01" local UNTIL=$NEXT - local LOG_FORMAT="* %s %an" + local LOG_FORMAT="* %s" git log --no-merges --since="${SINCE}" --until="${UNTIL}" --format="%cd" --date=short --follow . | sort -u | while read DATE ; do local GIT_PAGER=$(git log --no-merges --reverse --format="${LOG_FORMAT}" --since="${DATE} 00:00:00" --until="${DATE} 23:59:59" --author="${AUTHOR}" --follow . | uniq) if [ ! -z "$GIT_PAGER" ] @@ -67,7 +67,8 @@ _gitLogByDay() { fi done } -if git rev-parse ; +if [ ! -e "changelog" ] \ + || git rev-parse ; then _gitLogByDay > changelog changelog="changelog" diff --git a/changelog b/changelog index 4e9c1d088114..100731c1142c 100644 --- a/changelog +++ b/changelog @@ -1,7 +1,7 @@ [2021-01-11] -* add addons Your Name -* handle repo without tags Your Name +* add addons +* handle repo without tags [2021-01-12] -* handle repo without tags Your Name +* handle repo without tags |