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
| 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 @@ | ||
| 2 | 2 | |
| 3 | 3 | /** |
| 4 | 4 | * 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. | |
| 6 | 7 | */ |
| 7 | 8 | export const GIT_WORDS: Backend.BackendWords = Object.freeze({ |
| 8 | 9 | base: 'HEAD', |
| @@ -11,7 +12,7 @@ | ||
| 11 | 12 | untrackedNoteOf: (path: string, isPasteable: boolean) => [ |
| 12 | 13 | 'New file not yet staged.', |
| 13 | 14 | isPasteable |
| 14 | - ? `Run \`git add ':/${path}'\` to see line counts.` | |
| 15 | + ? `Run \`git add :/${path}\` to see line counts.` | |
| 15 | 16 | : 'Stage it with git add to see line counts.', |
| 16 | 17 | ], |
| 17 | 18 | }) |
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | /** |
| 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. | |
| 4 | 5 | * |
| 5 | 6 | * No quote of any kind, no separator and no substitution can ride in it. |
| 6 | 7 | */ |