mirror of
https://github.com/anthropics/claude-code.git
synced 2026-09-14 19:48:39 +08:00
20 lines
575 B
TypeScript
20 lines
575 B
TypeScript
import type Backend from '../../backend'
|
|
|
|
/**
|
|
* The pane's git words, unquoted as DiffDetailView words them.
|
|
*
|
|
* Compared with HEAD, read by `git diff`, untracked files listed by git and
|
|
* staged with `git add :/…`.
|
|
*/
|
|
export const GIT_WORDS: Backend.BackendWords = Object.freeze({
|
|
base: 'HEAD',
|
|
diffCommand: 'git diff',
|
|
lister: 'git',
|
|
untrackedNoteOf: (path: string, isPasteable: boolean) => [
|
|
'New file not yet staged.',
|
|
isPasteable
|
|
? `Run \`git add :/${path}\` to see line counts.`
|
|
: 'Stage it with git add to see line counts.',
|
|
],
|
|
})
|