From c80d4b113767d9ff6d7e15cc3ec70461a78201ef Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 18 Oct 2024 22:46:38 +0200 Subject: [PATCH] Add "invert-grep" flag option to log popup closes https://github.com/NeogitOrg/neogit/issues/1509 --- lua/neogit/popups/log/init.lua | 1 + spec/popups/log_popup_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lua/neogit/popups/log/init.lua b/lua/neogit/popups/log/init.lua index 9420686a5..64ffa55ab 100644 --- a/lua/neogit/popups/log/init.lua +++ b/lua/neogit/popups/log/init.lua @@ -24,6 +24,7 @@ function M.create() :option("u", "until", "", "Limit to commits until", { key_prefix = "-" }) :switch("m", "no-merges", "Omit merges", { key_prefix = "=" }) :switch("p", "first-parent", "First parent", { key_prefix = "=" }) + :switch("i", "invert-grep", "Invert search messages", { key_prefix = "-" }) :arg_heading("History Simplification") :switch("D", "simplify-by-decoration", "Simplify by decoration") :option("-", "", "", "Limit to files", { diff --git a/spec/popups/log_popup_spec.rb b/spec/popups/log_popup_spec.rb index ec343f4d5..88bfebfb1 100644 --- a/spec/popups/log_popup_spec.rb +++ b/spec/popups/log_popup_spec.rb @@ -19,6 +19,7 @@ " -u Limit to commits until (--until=) ", " =m Omit merges (--no-merges) ", " =p First parent (--first-parent) ", + " -i Invert search messages (--invert-grep) ", " ", " History Simplification ", " -D Simplify by decoration (--simplify-by-decoration) ",