-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitmsg.toml
More file actions
35 lines (31 loc) · 1.03 KB
/
Copy path.gitmsg.toml
File metadata and controls
35 lines (31 loc) · 1.03 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
# git-msg configuration
[provider]
endpoint = "http://127.0.0.1:1234"
# Set to "not-needed" for local models. For cloud APIs, use $OPENAI_API_KEY or global config (`git msg config`)
api_key = "not-needed"
model = "qwen3.5-2b"
timeout_seconds = 30
temperature = 0.2
[behavior]
template = "conventional" # Options: conventional | simple | gitmoji
language = "en-US" # Options: en-US | zh-CN
auto_stage_if_empty = true # Auto-stage working tree if staging area is empty
max_diff_lines = 500 # Global diff line limit for LLM context
max_file_diff_lines = 150 # Per-file diff line quota to avoid single-file saturation
[diff_filter]
ignore_files = [
"Cargo.lock",
"package-lock.json",
"pnpm-lock.yaml",
"yarn.lock",
"*.min.js",
"*.min.css",
"*.svg",
"*.lock"
]
# Optional: Override built-in templates with your custom prompt
# Variables: {diff}, {recent_commits}, {language}
# custom_prompt = """
# You are a commit generator. Generate a commit message based on:
# {diff}
# """