Compare commits
2 commits
56f81f598e
...
82f26fd76a
Author | SHA1 | Date | |
---|---|---|---|
Sanchayan Maity | 82f26fd76a | ||
Sanchayan Maity | 406570312f |
|
@ -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 -" \
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue