summaryrefslogtreecommitdiff
path: root/lua/telescope/builtin/__git.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2023-01-31 08:24:16 +0100
committerGitHub <noreply@github.com>2023-01-31 08:24:16 +0100
commit203bf5609137600d73e8ed82703d6b0e320a5f36 (patch)
treead72bd09f62dd02329f60230bf1db4c6adcfcfa9 /lua/telescope/builtin/__git.lua
parentf4b04389839855c716cba35dd8849476f609dda1 (diff)
Revert "feat(git): git_commits shows the current branch graph (#2288)" (#2358)
This reverts commit 01d92285ef4402b188fa583d57f5d1a18c889d22.
Diffstat (limited to 'lua/telescope/builtin/__git.lua')
-rw-r--r--lua/telescope/builtin/__git.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/telescope/builtin/__git.lua b/lua/telescope/builtin/__git.lua
index 866934f..4b9a9f3 100644
--- a/lua/telescope/builtin/__git.lua
+++ b/lua/telescope/builtin/__git.lua
@@ -56,7 +56,7 @@ end
git.commits = function(opts)
opts.entry_maker = vim.F.if_nil(opts.entry_maker, make_entry.gen_from_git_commits(opts))
- local git_command = vim.F.if_nil(opts.git_command, { "git", "log", "--graph", "--oneline", "--decorate", "--", "." })
+ local git_command = vim.F.if_nil(opts.git_command, { "git", "log", "--pretty=oneline", "--abbrev-commit", "--", "." })
pickers
.new(opts, {
@@ -115,7 +115,8 @@ git.bcommits = function(opts)
opts.current_line = (opts.current_file == nil) and get_current_buf_line(opts.winnr) or nil
opts.current_file = vim.F.if_nil(opts.current_file, vim.api.nvim_buf_get_name(opts.bufnr))
opts.entry_maker = vim.F.if_nil(opts.entry_maker, make_entry.gen_from_git_commits(opts))
- local git_command = vim.F.if_nil(opts.git_command, { "git", "log", "--graph", "--oneline", "--decorate", "--follow" })
+ local git_command =
+ vim.F.if_nil(opts.git_command, { "git", "log", "--pretty=oneline", "--abbrev-commit", "--follow" })
pickers
.new(opts, {