You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2026. It is now read-only.
style(gitcommit): improve code comments and docstrings
- update comments and docstrings for clarity and consistency across buffer, generator, git, init, and ui modules
- rephrase and simplify inline comments to enhance readability
- standardize parameter descriptions and function documentation for better maintainability
history_context="\nRECENT COMMIT HISTORY (for style reference):\n"
73
73
fori, commit_msginipairs(commit_history) do
74
74
history_context=history_context..string.format("%d. %s\n", i, commit_msg)
75
75
end
76
76
history_context=history_context
77
-
.."\nAnalyze the above commit history to understand the project's commit style, tone, and format patterns. Use this as guidance to maintain consistency.\n"
77
+
.."\nAnalyze commit history to understand projectstyle, tone, and format patterns. Use this for consistency.\n"
78
78
end
79
79
80
80
returnstring.format(
@@ -127,7 +127,7 @@ Return ONLY the commit message in the exact format shown above.]],
127
127
end
128
128
129
129
---Handle LLM response
130
-
---@paramerrtable|nil Error from request
130
+
---@paramerrtable|nil Request error
131
131
---@paramdatatable|nil Response data
132
132
---@paramadaptertable The adapter used
133
133
---@paramcallbackfun(result: string|nil, error: string|nil) Callback function
@@ -138,12 +138,12 @@ function Generator._handle_response(err, data, adapter, callback)
138
138
returncallback(nil, error_msg)
139
139
end
140
140
141
-
-- Check for empty or invalid data
141
+
-- Check for empty/invalid data
142
142
ifnotdatathen
143
143
returncallback(nil, "No response received from LLM")
0 commit comments