From 1659498813eba0c002d26382ddf94e1460392a18 Mon Sep 17 00:00:00 2001 From: Joey Bronner Date: Mon, 25 Jan 2016 15:28:21 +0100 Subject: [PATCH] Dates with years & commit user name/mail --- script/dates.sh | 10 +++++++--- script/dates.txt | 8 ++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/script/dates.sh b/script/dates.sh index 8a990da..28429c1 100755 --- a/script/dates.sh +++ b/script/dates.sh @@ -3,9 +3,13 @@ while read date do fileName=`echo "$date" | tr " " "_"` - date="$date 14:00 2015 +0500" + year=${date:(-4)} + minimeDate="${date%?????}" + commitDate="$minimeDate 14:00 $year +0500" + name=$(git config user.name) + email=$(git config user.email) echo "Creating file... $fileName" touch "$fileName" git add "$fileName" - git commit --date="$date" --author="Joey Bronner " -m "$fileName" -done