Compare commits

...

2 commits

2 changed files with 2 additions and 2 deletions

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 --no-merges --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 -" \

View file

@ -34,7 +34,7 @@ vim.api.nvim_create_autocmd({ "BufWritePre" }, {
})
vim.api.nvim_create_autocmd({ "BufReadPre", "BufWinEnter" }, {
pattern = { "*/git/checkouts/*", "*/toolchains/*" },
pattern = { "*/git/checkouts/*", "*/toolchains/*", "*cargo/registry/*" },
callback = function()
vim.bo.buflisted = false
end,