Skip to content

Commit f8b8113

Browse files
committed
Merge pull request #446 from ssssam/fix-active-days
effort, summary: Correctly estimate the number of active days
2 parents 60098c9 + 6a000ec commit f8b8113

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/git-effort

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ show_cursor_and_cleanup() {
4242
#
4343

4444
active_days() {
45-
echo "$1" | uniq | wc -l
45+
echo "$1" | sort -r | uniq | wc -l
4646
}
4747

4848
#

bin/git-summary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ date() {
2121
#
2222

2323
active_days() {
24-
date $1 | uniq | awk '
24+
date $1 | sort -r | uniq | awk '
2525
{ sum += 1 }
2626
END { print sum }
2727
'

0 commit comments

Comments
 (0)