Skip to content

Instantly share code, notes, and snippets.

@rochefort
Last active October 28, 2023 09:19
Show Gist options
  • Save rochefort/faeeaa2451dbad62e65194e30acf0925 to your computer and use it in GitHub Desktop.
Save rochefort/faeeaa2451dbad62e65194e30acf0925 to your computer and use it in GitHub Desktop.
kaigi on rails 2023 by zaak
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
}
@rochefort
Copy link
Author

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"\n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment