-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dates with years & commit user name/mail
- Loading branch information
1 parent
c07f395
commit 1659498
Showing
2 changed files
with
11 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |