mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
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:
parent
13117264c3
commit
ed24416bf7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue