Skip to content

Commit

Permalink
frontend_commands.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgo committed May 9, 2024
1 parent 359978a commit 408ab14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/git/frontend_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func (self *FrontendCommands) CheckoutBranch(name gitdomain.LocalBranchName, mer
// Commit performs a commit of the staged changes with an optional custom message and author.
func (self *FrontendCommands) Commit(message Option[gitdomain.CommitMessage], author gitdomain.Author) error {
gitArgs := []string{"commit"}
if commitMessage, has := message.Get(); has {
gitArgs = append(gitArgs, "-m", commitMessage.String())
if messageContent, has := message.Get(); has {
gitArgs = append(gitArgs, "-m", messageContent.String())
}
if author != "" {
gitArgs = append(gitArgs, "--author", author.String())
Expand Down

0 comments on commit 408ab14

Please sign in to comment.