From 926937d0758ed59eb664d317b41d4369eed65efc Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 23 Feb 2023 13:57:12 +0530 Subject: [PATCH] fish: functions/gl: Enable graph view --- fish/.config/fish/functions/gl.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/.config/fish/functions/gl.fish b/fish/.config/fish/functions/gl.fish index 6ca8245..39ac9b4 100644 --- a/fish/.config/fish/functions/gl.fish +++ b/fish/.config/fish/functions/gl.fish @@ -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 -" \