dotfiles/.local/bin/scripts/git-week

5 lines
223 B
Plaintext
Raw Normal View History

#!/bin/sh
# Commits by myself throughout the current week
2021-10-14 18:25:44 +00:00
# depends: git-my alias - listing own commits
git my --after "$(date -d "Mon ${1:-1} weeks ago")" --before "$(date -d "Mon $(expr ${1:-1} - 1) weeks ago")" "${@:2}"