Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Commit cdaf830

Browse files
committed
fix(gitcommit): improve error message clarity for no commits found
1 parent 3472947 commit cdaf830

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lua/codecompanion/_extensions/gitcommit

lua/codecompanion/_extensions/gitcommit/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ local function setup_slash_commands(opts)
230230
end
231231
end
232232
if #items == 0 then
233-
return chat:add_context({ role = "user", content = "No commits found." }, "git", "<git_error>")
233+
return chat:add_context({ role = "user", content = "Error: No commits found." }, "git", "<git_error>")
234234
end
235235
select_commit(chat, items)
236236
else

0 commit comments

Comments
 (0)