Skip to content

Commit

Permalink
use author date instead of commit date, so author can modify dates
Browse files Browse the repository at this point in the history
  • Loading branch information
torhve committed Jan 25, 2013
1 parent aa208cd commit 4af3c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-commit
Expand Up @@ -7,7 +7,7 @@ for FILE in $(ls *md) ; do
TITLE="${FILE%%.*}"
REDIS_KEY="post:$TITLE:log"
# get json log output with unix timestamp date
OUTPUT=$(exec git log --pretty=format:'{"commit": "%H", "author": "%an <%ae>", "timestamp": %ct, "message": "%s"},' -- $FILE)
OUTPUT=$(exec git log --pretty=format:'{"commit": "%H", "author": "%an <%ae>", "timestamp": %at, "message": "%s"},' -- $FILE)
# Strip last ,
OUTPUT="${OUTPUT%%,}"
# Switch linesbreaks to , with goal to eventually make a list
Expand Down

0 comments on commit 4af3c01

Please sign in to comment.