Debian Codegraph @

lua/gitsigns/git/errors.lua

raw
1 return {
2 e = {
3 worktree = vim.pesc('fatal: this operation must be run in a work tree'),
4 -- Match both:
5 -- 'fatal: not a git repository (or any of the parent directories)'
6 -- 'fatal: not a git repository (or any parent up to mount point /)'
7 not_in_git = 'fatal: not a git repository',
8 path_does_not_exist = "fatal: path .* does not exist in '.*'",
9 path_exist_on_disk_but_not_in = "fatal: path .* exists on disk, but not in '.*'",
10 path_is_outside_worktree = "fatal: .*: '.*' is outside repository at '.*'",
11 ambiguous_head = "fatal: ambiguous argument 'HEAD'",
12 },
13 w = {
14 could_not_open_directory = '^warning: could not open directory .*: No such file or directory',
15 },
16 }