diff options
Diffstat (limited to 'git-ilog')
-rwxr-xr-x | git-ilog | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/git-ilog b/git-ilog new file mode 100755 index 0000000..b3a6b3e --- /dev/null +++ b/git-ilog @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +git log \ + --date=short \ + --format="%C(green)%C(bold)%cd %C(auto)%h%d %s (%an)" \ + --graph --color=always \ + $@ \ + | fzf --height 100% \ + --ansi --no-sort --reverse --multi --exact \ + --bind 'ctrl-s:toggle-sort' \ + --bind 'ctrl-/:change-preview-window(hidden|90%|)' \ + --bind 'alt-p:preview-page-up' \ + --bind 'alt-n:preview-page-down' \ + --header 'Press CTRL-S to toggle sort' \ + --preview 'grep -o "[a-f0-9]\{7,\}" <<< {} | xargs git show --color=always' \ + | grep -o "[a-f0-9]\{7,\}" + |