Skip to content

Commit 1e61b9e

Browse files
committed
fix(git): disable outputting gpg signatures for log commands
1 parent 4516612 commit 1e61b9e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/diffview/vcs/adapters/git/init.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function GitAdapter:get_show_args(path, rev)
271271
end
272272

273273
function GitAdapter:get_log_args(args)
274-
return utils.vec_join("log", "--first-parent", "--stat", args)
274+
return utils.vec_join("log", "--no-show-signature", "--first-parent", "--stat", args)
275275
end
276276

277277
function GitAdapter:get_dir(path)
@@ -570,6 +570,7 @@ function GitAdapter:stream_fh_data(state)
570570
"-c",
571571
"core.quotePath=false",
572572
"log",
573+
"--no-show-signature",
573574
"--pretty=format:%x00%n" .. GitAdapter.COMMIT_PRETTY_FMT,
574575
"--numstat",
575576
"--raw",
@@ -649,6 +650,7 @@ function GitAdapter:stream_line_trace_data(state)
649650
"-c",
650651
"core.quotePath=false",
651652
"log",
653+
"--no-show-signature",
652654
"--color=never",
653655
"--no-ext-diff",
654656
"--pretty=format:%x00%n" .. GitAdapter.COMMIT_PRETTY_FMT,
@@ -720,6 +722,7 @@ function GitAdapter:file_history_dry_run(log_opt)
720722
else
721723
cmd = utils.vec_join(
722724
"log",
725+
"--no-show-signature",
723726
"--pretty=format:%H",
724727
"--name-status",
725728
options,

0 commit comments

Comments
 (0)