Skip to content

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

TypeScript

mods/diff: the unanswered-git comment says a git that cannot start has answered

poteat478b7180d1d6
diff --git a/mods/diff/hooks/names/texts/git-unanswered-text.ts b/mods/diff/hooks/names/texts/git-unanswered-text.ts
index 2d32d1b7..79631d77 100644
--- a/mods/diff/hooks/names/texts/git-unanswered-text.ts
+++ b/mods/diff/hooks/names/texts/git-unanswered-text.ts
@@ -1,8 +1,8 @@
/**
* `/diff`'s answer when git did not say whether this is a repository.
*
- * It timed out or could not start: the directory is unknown, not outside
- * one.
+ * It timed out: the directory is unknown, not outside one. A git that
+ * cannot start has answered, and gets the not-a-repository text.
*/
export const GIT_UNANSWERED_TEXT =
'The diff panel couldn’t read git state — git didn’t answer; run /diff ' +