refactor: use --format=<format> instead of --pretty=format:<format>

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-03-17 20:46:01 +08:00
parent 808302ce84
commit 8d47bd5cd9
No known key found for this signature in database
7 changed files with 8 additions and 10 deletions

View file

@ -1,6 +1,4 @@
using System;
namespace SourceGit.Commands
namespace SourceGit.Commands
{
public class QueryCommitSignInfo : Command
{
@ -9,7 +7,7 @@ namespace SourceGit.Commands
WorkingDirectory = repo;
Context = repo;
const string baseArgs = "show --no-show-signature --pretty=format:\"%G?%n%GS%n%GK\" -s";
const string baseArgs = "show --no-show-signature --format=%G?%n%GS%n%GK -s";
const string fakeSignersFileArg = "-c gpg.ssh.allowedSignersFile=/dev/null";
Args = $"{(useFakeSignersFile ? fakeSignersFileArg : string.Empty)} {baseArgs} {sha}";
}