Make repository_age() "history rewrite safe"

Change commit date to author date, so that the repo age doesn't change if history rewriting tools (such as amend, rebase, filter-branch) are used.
This commit is contained in:
Aurélien Scoubeau 2013-06-17 12:56:39 +02:00
parent 13117264c3
commit ed24416bf7

View file

@ -59,7 +59,7 @@ authors() {
#
repository_age() {
git log --reverse --pretty=oneline --format="%cr" | head -n 1 | sed 's/ago//'
git log --reverse --pretty=oneline --format="%ar" | head -n 1 | sed 's/ago//'
}
# summary