Skip to content

Commit

Permalink
[commit] change how flags are passed in commit command
Browse files Browse the repository at this point in the history
  • Loading branch information
mrados7 committed Jul 7, 2024
1 parent a5d4690 commit beccb66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/commit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ func initialModel() model {
case 1:
t.ShowSuggestions = true
commitFlags := []string{
"--message",
"--all",
"--patch",
"--reuse-message",
Expand Down Expand Up @@ -130,7 +129,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
// If so, exit.
if s == "enter" && m.focusInputIndex == len(m.inputs) {
// Execute git commit command with flags
commitCmd := exec.Command("git", "commit", "-m", fmt.Sprintf("%s %s", m.inputs[0].Value(), m.inputs[1].Value()))
commitCmd := exec.Command("git", "commit", "-m", fmt.Sprintf("%s", m.inputs[0].Value()), m.inputs[1].Value())
commitCmd.Stdout = os.Stdout
commitCmd.Stderr = os.Stderr

Expand Down

0 comments on commit beccb66

Please sign in to comment.