fish-shell/share/completions/src.fish

86 lines
5.6 KiB
Fish
Raw Normal View History

2019-08-05 01:18:09 +00:00
# Generated by hand from <http://www.catb.org/~esr/src/src.html> as of src 1.26.
# TODO?: add short synonyms like ci, am
# TODO: extract tag/branch names and feed to -a for tag delete, branch delete, rename
complete -c src -f -n __fish_use_subcommand -a help -d 'Displays help for commands'
2019-08-05 01:18:09 +00:00
complete -c src -f -n '__fish_seen_subcommand_from help' -a 'intro revisions commands commit amend checkout cat status log list diff fast-export fast-import ignores'
complete -c src -n __fish_use_subcommand -a commit -d 'Enters a commit for the specified files'
2019-08-05 01:18:09 +00:00
complete -c src -x -n '__fish_seen_subcommand_from commit' -s m -d 'Enter commit message as a string'
complete -c src -r -n '__fish_seen_subcommand_from commit' -s f -d 'Enter file containing commit message'
complete -c src -n '__fish_seen_subcommand_from commit' -s e -d 'Further edit commit message'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a amend -d 'Amends the stored comment for a specified revision'
2019-08-05 01:18:09 +00:00
complete -c src -x -n '__fish_seen_subcommand_from amend' -s m -d 'Enter commit message as a string'
complete -c src -r -n '__fish_seen_subcommand_from amend' -s f -d 'Enter file containing commit message'
complete -c src -n '__fish_seen_subcommand_from amend' -s e -d 'Further edit commit message'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a checkout -d 'Refresh working copy from history'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a cat -d 'Send the specified revision of the files to standard output'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a status -d 'Show status of files'
complete -c src -n '__fish_seen_subcommand_from status' -s a -d 'Show all files'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a tag -d 'List/create/delete tags'
complete -c src -n '__fish_seen_subcommand_from tag' -a list -d 'List tags'
complete -c src -n '__fish_seen_subcommand_from tag' -s l -d 'List tags'
2019-08-05 01:18:09 +00:00
complete -c src -r -n '__fish_seen_subcommand_from tag' -a create -d 'Create tag'
complete -c src -r -n '__fish_seen_subcommand_from tag' -s c -d 'Create tag'
2019-08-05 01:18:09 +00:00
complete -c src -r -n '__fish_seen_subcommand_from tag' -a delete -d 'Delete tag'
complete -c src -r -n '__fish_seen_subcommand_from tag' -s d -d 'Delete tag'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a branch -d 'List/create/delete branches'
complete -c src -n '__fish_seen_subcommand_from branch' -a list -d 'List branches'
complete -c src -n '__fish_seen_subcommand_from branch' -s l -d 'List branches'
2019-08-05 01:18:09 +00:00
complete -c src -r -n '__fish_seen_subcommand_from branch' -a create -d 'Create branch'
complete -c src -r -n '__fish_seen_subcommand_from branch' -s c -d 'Create branch'
2019-08-05 01:18:09 +00:00
complete -c src -r -n '__fish_seen_subcommand_from branch' -a delete -d 'Delete branch'
complete -c src -r -n '__fish_seen_subcommand_from branch' -s d -d 'Delete branch'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a rename -d 'Rename tag/branch'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a list -d 'List information about commits'
2019-08-05 01:18:09 +00:00
# TODO: support `src list -<n>`
complete -c src -x -n '__fish_seen_subcommand_from list' -s l -d 'Limit per-file commit count'
complete -c src -x -n '__fish_seen_subcommand_from list' -s f -d 'Specify format string'
2019-08-05 01:18:09 +00:00
# NOTE: pretending -b and -w are old-style options means they wont be suggested as, say, “-pb” (which src cant handle)
complete -c src -r -n __fish_use_subcommand -a log -d 'List information about commits'
complete -c src -x -n '__fish_seen_subcommand_from log' -s v -d 'Be more verbose'
2019-08-05 01:18:09 +00:00
# TODO: support `src log -<n>`
complete -c src -x -n '__fish_seen_subcommand_from log' -s l -d 'Limit per-file log entries'
complete -c src -n '__fish_seen_subcommand_from log' -s p -l patch -s u -d 'Print unified-format diff'
complete -c src -n '__fish_seen_subcommand_from log' -s c -d 'Print context diff'
complete -c src -n '__fish_seen_subcommand_from log' -n '__fish_contains_opt -s p patch' -o b -d 'Ignore whitespace changes'
complete -c src -n '__fish_seen_subcommand_from log' -n '__fish_contains_opt -s p patch' -o w -d 'Ignore all whitespace'
complete -c src -n '__fish_seen_subcommand_from log' -n '__fish_contains_opt -s u' -o b -d 'Ignore whitespace changes'
complete -c src -n '__fish_seen_subcommand_from log' -n '__fish_contains_opt -s u' -o w -d 'Ignore all whitespace'
2019-08-05 01:18:09 +00:00
# NOTE: pretending -b and -w are old-style options means they wont be suggested as, say, “-pb” (which src cant handle)
complete -c src -r -n __fish_use_subcommand -a diff -d 'Print diff'
complete -c src -n '__fish_seen_subcommand_from diff' -s u -d 'Print unified-format diff'
complete -c src -n '__fish_seen_subcommand_from diff' -s c -d 'Print context diff'
complete -c src -n '__fish_seen_subcommand_from diff' -o b -d 'Ignore whitespace changes'
complete -c src -n '__fish_seen_subcommand_from diff' -o w -d 'Ignore all whitespace'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a ls -d 'List all registered files'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a visualize -d 'Emit DOT visualization'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a move -d 'Rename a workfile and its history'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a copy -d 'Copy a file and its master'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a fast-export -d 'Export as a Git fast-import stream'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a fast-import -d 'Parse a git-fast-import stream from stdin'
complete -c src -n '__fish_seen_subcommand_from fast-import' -s p -d 'Discards metadata'
2019-08-05 01:18:09 +00:00
complete -c src -r -n __fish_use_subcommand -a release -d 'Release locks on files'
2019-08-05 01:18:09 +00:00
complete -c src -s d -d 'Enable debugging output'
2019-08-05 01:18:09 +00:00
complete -c src -r -s S -d 'Set repository directory'
complete -c src -s T -d 'Set up for fast-export tests'