dotfiles/.config/scripts/functions/git

9 lines
124 B
Bash

#!/bin/bash
gitshow()
{
hash=$(git log --oneline . | fzf | awk '{print$1}')
[ -z "$hash" ] && return
git show "$hash"
}