Skip to content

Commit 26453b2

Browse files
committed
Remove unused function GetHashesAndCommitMessagesFirstLine
1 parent e2b3601 commit 26453b2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pkg/commands/git_commands/commit.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -217,20 +217,6 @@ func (self *CommitCommands) GetCommitMessagesFirstLine(hashes []string) (string,
217217
return self.cmd.New(cmdArgs).DontLog().RunWithOutput()
218218
}
219219

220-
// Example output:
221-
//
222-
// cd50c79ae Preserve the commit message correctly even if the description has blank lines
223-
// 3ebba5f32 Add test demonstrating a bug with preserving the commit message
224-
// 9a423c388 Remove unused function
225-
func (self *CommitCommands) GetHashesAndCommitMessagesFirstLine(hashes []string) (string, error) {
226-
cmdArgs := NewGitCmd("show").
227-
Arg("--no-patch", "--pretty=format:%h %s").
228-
Arg(hashes...).
229-
ToArgv()
230-
231-
return self.cmd.New(cmdArgs).DontLog().RunWithOutput()
232-
}
233-
234220
func (self *CommitCommands) GetCommitsOneline(hashes []string) (string, error) {
235221
cmdArgs := NewGitCmd("show").
236222
Arg("--no-patch", "--oneline").

0 commit comments

Comments
 (0)