-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-ca.rb
More file actions
41 lines (34 loc) · 1.41 KB
/
git-ca.rb
File metadata and controls
41 lines (34 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
class GitCa < Formula
desc "AI-powered Git plugin for generating meaningful commit messages"
homepage "https://github.com/zh30/git-commit-analyzer"
url "https://github.com/zh30/git-commit-analyzer/archive/refs/tags/v2.0.12.tar.gz"
sha256 "1fcc660b107846e767a2bb629e1aaa39603da638b114480c410ee45db58fd682"
license "MIT"
head "https://github.com/zh30/git-commit-analyzer.git", branch: "main"
# Bottle support for pre-built binaries
bottle do
root_url "https://github.com/zh30/git-commit-analyzer/releases/download/v2.0.12"
sha256 cellar: :any_skip_relocate, arm64_sequoia: "REPLACE_WITH_ARM64_SHA"
sha256 cellar: :any_skip_relocate, x86_64_sequoia: "REPLACE_WITH_X64_SHA"
end
def install
bin.install "git-ca"
end
def caveats
<<~EOS
To use git-ca, you need a local GGUF model (llama.cpp format).
The tool will automatically download the default model
(unsloth/gemma-3-270m-it-GGUF) on first run, or you can:
- Place GGUF files in ./models directory
- Place GGUF files in ~/.cache/git-ca/models directory
- Run 'git ca model' to select a model manually
To set up a default model, run:
git ca model
Note: git-ca uses local llama.cpp inference (no remote API calls).
EOS
end
test do
# Test to verify that the binary is installed correctly
assert_match version.to_s, shell_output("#{bin}/git-ca --version")
end
end