Skip to content

Commit

Permalink
Dates with years & commit user name/mail
Browse files Browse the repository at this point in the history
  • Loading branch information
joeybronner committed Jan 25, 2016
1 parent c07f395 commit 1659498
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions script/dates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>" -m "$fileName"
done <dates.txt
git commit --date="$commitDate" --author="$name <$email>" -m "$fileName"
done <dates.txt
8 changes: 4 additions & 4 deletions script/dates.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Mon Aug 17
Tue Aug 18
Wed Aug 19
Thu Aug 20
Mon Aug 17 2012
Tue Aug 18 2013
Wed Aug 19 2015
Thu Aug 20 2016

0 comments on commit 1659498

Please sign in to comment.