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

5 lines
229 B
Plaintext
Raw Normal View History

#!/bin/sh
# Commits by myself throughout the current week
# Depends on git-my alias listing commits by myself
git my --after "$(date -d "Mon ${1:-1} weeks ago")" --before "$(date -d "Mon $(expr ${1:-1} - 1) weeks ago")" "${@:2}"