dotfiles/fish/.config/fish/functions/glmd.fish

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
280 B
Fish
Raw Normal View History

function glmd --description 'Format commits in markdown for MR descriptions and copy to clipboard'
set -l remote (git symbolic-ref refs/remotes/origin/HEAD | awk -F'/' '{print $4}')
git log --reverse --pretty=format:"- **%s** %w(0,2,2)%+b" origin/$remote.. | wl-copy
end