fish: functions/gl: Enable graph view
This commit is contained in:
parent
85d6842f17
commit
926937d075
1 changed files with 1 additions and 1 deletions
|
@ -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/%'"
|
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" \
|
--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" \
|
--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 -" \
|
--bind "enter:execute:$view_commit_nvim | nvim -R -" \
|
||||||
|
|
Loading…
Reference in a new issue