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

5 lines
223 B
Bash
Executable File

#!/bin/sh
# Commits by myself throughout the current week
# 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}"