bash - Move ALL git commits dates 1 day into the future -


my system time incorrectly set during game jam, commits 24 hours before else's. i'd try doing filter-branch:

#!/bin/sh  git filter-branch --env-filter '  an="$git_author_name" ad="$git_author_date" cd="$git_committer_date"  if [ "$git_author_name" = "wilbefast" ]     ad=date_plus_one(ad)     cd=date_plus_one(cd) fi  export git_author_date="$ad" export git_committer_date="$cd" ' 

i can't figure out how parse , modify date though :s i'm not bash pro i'm afraid; ideas?

git_author_date , git_committer_date in unix time, can add 24 hours worth of seconds these values (86400 seconds)

ad=$[ $ad + 86400 ] cd=$[ $cd + 86400 ] 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -