fish: functions/gl: Enable graph view

This commit is contained in:
Sanchayan Maity 2023-02-23 13:57:12 +05:30
parent 85d6842f17
commit 926937d075
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -9,7 +9,7 @@ function gl --description 'Git browse commits'
set github_open "$log_line_to_hash | xargs -I % sh -c '$open_cmd https://github.\$(git config remote.origin.url | cut -f2 -d. | tr \':\' /)/commit/%'"
git log --color=always --format='%C(auto)%h%d %s %C(green)%C(bold)%cr% C(blue)%an' $argv | fzf --exact --no-sort --reverse --tiebreak=index --no-multi --ansi \
git log --graph --color=always --format='%C(auto)%h%d %s %C(green)%C(bold)%cr% C(blue)%an' $argv | fzf --exact --no-sort --reverse --tiebreak=index --no-multi --ansi \
--preview="$view_commit" \
--header="ENTER to view, CTRL-Y to copy hash, CTRL-O to open on GitHub, CTRL-X to checkout, CTRL-C to exit, CTRL-S to cherry-pick" \
--bind "enter:execute:$view_commit_nvim | nvim -R -" \