Class: Ace::Support::Items::Molecules::GitCommitter

Inherits:
Object
  • Object
show all
Defined in:
lib/ace/support/items/molecules/git_committer.rb

Overview

Shells out to ace-git-commit for auto-committing after mutations. Pure CLI invocation — no gem dependency on ace-git-commit.

Class Method Summary collapse

Class Method Details

.commit(paths:, intention:) ⇒ Boolean

Returns true if commit succeeded.

Parameters:

  • paths (Array<String>)

    File/directory paths to commit

  • intention (String)

    Commit intention for LLM message generation

Returns:

  • (Boolean)

    true if commit succeeded



13
14
15
16
# File 'lib/ace/support/items/molecules/git_committer.rb', line 13

def self.commit(paths:, intention:)
  cmd = ["ace-git-commit"] + paths + ["-i", intention]
  system(*cmd)
end