add git alias times

* src: https://gist.github.com/bessarabov/674ea13c77fc8128f24b5e3f53b7f094
This commit is contained in:
Morgan Wattiez 2019-07-22 20:27:42 +02:00
parent e9890f3830
commit e21965dca3

View File

@ -19,3 +19,8 @@
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
type = cat-file -t type = cat-file -t
dump = cat-file -p dump = cat-file -p
times = "!git log --author=\"$(git config user.name)\" \
--date=iso \
--format=\"%ad\" \
--date=\"format:%H\" \
| awk '{n=$1+0;if(H[n]++>max)max=H[n]}END{for(i=0;i<24;i++){printf\"%02d -%5d \",i,H[i];for(n=0;n<H[i]/max*50;n++){printf \"*\"}print\"\"}}'"