Last active
October 28, 2023 09:19
-
-
Save rochefort/faeeaa2451dbad62e65194e30acf0925 to your computer and use it in GitHub Desktop.
kaigi on rails 2023 by zaak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
timeago() { | |
if [ -n "$1" ] | |
then | |
gdate +"%Y-%m-%d" -d "$1 ago" | |
else | |
gdate +"%Y-%m-%d" -d "$1 week ago" | |
fi | |
} | |
summary() { | |
git log --since="$1(timeago "$1")" --first-parent | |
} | |
summary() { | |
git lg --since="$1(timeago "$1")" --first-parent | |
} |
Author
rochefort
commented
Oct 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment