diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2023-01-31 08:24:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-31 08:24:16 +0100 |
| commit | 203bf5609137600d73e8ed82703d6b0e320a5f36 (patch) | |
| tree | ad72bd09f62dd02329f60230bf1db4c6adcfcfa9 /lua/telescope/make_entry.lua | |
| parent | f4b04389839855c716cba35dd8849476f609dda1 (diff) | |
Revert "feat(git): git_commits shows the current branch graph (#2288)" (#2358)
This reverts commit 01d92285ef4402b188fa583d57f5d1a18c889d22.
Diffstat (limited to 'lua/telescope/make_entry.lua')
| -rw-r--r-- | lua/telescope/make_entry.lua | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua index 450ebee..2276dd2 100644 --- a/lua/telescope/make_entry.lua +++ b/lua/telescope/make_entry.lua @@ -430,27 +430,17 @@ function make_entry.gen_from_git_commits(opts) return nil end - local marker, sha, msg = string.match(entry, "([*\\/| ]+) +([0-9a-f]*) +(.*)") - - if not sha then - marker = entry - sha = "" - msg = "" - end + local sha, msg = string.match(entry, "([^ ]+) (.+)") if not msg then + sha = entry msg = "<empty commit message>" end - marker, _ = string.gsub(marker, "\\", "+") - marker, _ = string.gsub(marker, "/", "-") - marker, _ = string.gsub(marker, "+", "/") - marker, _ = string.gsub(marker, "-", "\\") - return make_entry.set_default_entry_mt({ value = sha, - ordinal = marker .. " " .. sha .. " " .. msg, - msg = marker .. " " .. msg, + ordinal = sha .. " " .. msg, + msg = msg, display = make_display, current_file = opts.current_file, }, opts) |
