spacehub

surshar / claude-code

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.

Built by Anthropic · github.com/anthropics

mods/diff: the untracked file's stage hint is unquoted, as the built-in words itBrowse files
poteat authored on Sep 10, 2026 parent 9518d8f · commit 23e30f0c17c5
2 changed files+6 -4compared with 9518d8f
Mmods/diff/hooks/git/git-words/git-words.ts
Mmods/diff/hooks/views/detail/placeholder-of/safe-pathspec-pattern/safe-pathspec-pattern.ts
@@ -2,7 +2,8 @@
22
33 /**
44 * The pane's git words: compared with HEAD, read by `git diff`, untracked
5- * files listed by git and staged with `git add ':/…'` (DiffDetailView's).
5+ * files listed by git and staged with `git add :/…`, unquoted as
6+ * DiffDetailView words it.
67 */
78 export const GIT_WORDS: Backend.BackendWords = Object.freeze({
89 base: 'HEAD',
@@ -11,7 +12,7 @@
1112 untrackedNoteOf: (path: string, isPasteable: boolean) => [
1213 'New file not yet staged.',
1314 isPasteable
14- ? `Run \`git add ':/${path}'\` to see line counts.`
15+ ? `Run \`git add :/${path}\` to see line counts.`
1516 : 'Stage it with git add to see line counts.',
1617 ],
1718 })
@@ -1,6 +1,7 @@
11 /**
2- * A file name safe to paste into a stage command in any shell (POSIX,
3- * PowerShell, cmd): letters and digits of any script and `._/@+-` only.
2+ * A file name safe to paste, unquoted, into a stage command in any shell
3+ * (POSIX, PowerShell, cmd): letters and digits of any script and `._/@+-`
4+ * only.
45 *
56 * No quote of any kind, no separator and no substitution can ride in it.
67 */