From 26453b26cf0b49eed5e435008a2a56af2a8e5daa Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Wed, 26 Nov 2025 21:44:21 +0100 Subject: [PATCH] Remove unused function GetHashesAndCommitMessagesFirstLine --- pkg/commands/git_commands/commit.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/commands/git_commands/commit.go b/pkg/commands/git_commands/commit.go index 89063be82..40d2b7319 100644 --- a/pkg/commands/git_commands/commit.go +++ b/pkg/commands/git_commands/commit.go @@ -217,20 +217,6 @@ func (self *CommitCommands) GetCommitMessagesFirstLine(hashes []string) (string, return self.cmd.New(cmdArgs).DontLog().RunWithOutput() } -// Example output: -// -// cd50c79ae Preserve the commit message correctly even if the description has blank lines -// 3ebba5f32 Add test demonstrating a bug with preserving the commit message -// 9a423c388 Remove unused function -func (self *CommitCommands) GetHashesAndCommitMessagesFirstLine(hashes []string) (string, error) { - cmdArgs := NewGitCmd("show"). - Arg("--no-patch", "--pretty=format:%h %s"). - Arg(hashes...). - ToArgv() - - return self.cmd.New(cmdArgs).DontLog().RunWithOutput() -} - func (self *CommitCommands) GetCommitsOneline(hashes []string) (string, error) { cmdArgs := NewGitCmd("show"). Arg("--no-patch", "--oneline").