fish-shell/share/completions/svn.fish
axel bf5d4f6b07 Simplify completions for a few commands (svn, cvs, darcs, yum)
darcs-hash:20070120170940-ac50b-24c0e5b05ca03a590b90e795bbd62b15583e2bd1.gz
2007-01-21 03:09:40 +10:00

134 lines
9.5 KiB
Fish

#
# Completions for the svn VCS command
#
#
# If no subcommand has been specified, complete using all available subcommands
#
complete -c svn -n '__fish_use_subcommand' -xa 'add' --description "Place files or directories under version control"
complete -c svn -n '__fish_use_subcommand' -xa 'blame praise annotate ann' --description "Output files/URLs with revision and author information inline"
complete -c svn -n '__fish_use_subcommand' -xa 'cat' --description "Output content of files/URLs"
complete -c svn -n '__fish_use_subcommand' -xa 'checkout co' --description "Check out a working copy from the repository"
complete -c svn -n '__fish_use_subcommand' -xa 'cleanup' --description "Recursively clean up the working copy"
complete -c svn -n '__fish_use_subcommand' -xa 'commit ci' --description "Send changes from your working copy to the repository"
complete -c svn -n '__fish_use_subcommand' -xa 'copy cp' --description "Duplicate something in working copy or repository, remembering history"
complete -c svn -n '__fish_use_subcommand' -xa 'delete del remove rm' --description "Remove file or directory from version control"
complete -c svn -n '__fish_use_subcommand' -xa 'diff di' --description "Display the differences between two paths"
complete -c svn -n '__fish_use_subcommand' -xa 'export' --description "Create an unversioned copy of a tree"
complete -c svn -n '__fish_use_subcommand' -xa 'help h \\?' --description "Describe the usage of this program or its subcommands"
complete -c svn -n '__fish_use_subcommand' -xa 'import' --description "Commit an unversioned file or tree into the repository"
complete -c svn -n '__fish_use_subcommand' -xa 'info' --description "Display information about a local or remote item"
complete -c svn -n '__fish_use_subcommand' -xa 'list ls' --description "List directory entries in the repository"
complete -c svn -n '__fish_use_subcommand' -xa 'lock' --description "Lock working copy paths or URLs in the repository"
complete -c svn -n '__fish_use_subcommand' -xa 'log' --description "Show the log messages for a set of revision(s) and/or file(s)"
complete -c svn -n '__fish_use_subcommand' -xa 'merge' --description "Apply the differences between two sources to a working copy path"
complete -c svn -n '__fish_use_subcommand' -xa 'mkdir' --description "Create a new directory under version control"
complete -c svn -n '__fish_use_subcommand' -xa 'move mv rename ren' --description "Move and/or rename something in working copy or repository"
complete -c svn -n '__fish_use_subcommand' -xa 'propdel pdel pd' --description "Remove a property from files, dirs, or revisions"
complete -c svn -n '__fish_use_subcommand' -xa 'propedit pedit pe' --description "Edit a property with an external editor on targets"
complete -c svn -n '__fish_use_subcommand' -xa 'propget pget pg' --description "Print value of a property on files, dirs, or revisions"
complete -c svn -n '__fish_use_subcommand' -xa 'proplist plist pl' --description "List all properties on files, dirs, or revisions"
complete -c svn -n '__fish_use_subcommand' -xa 'propset pset ps' --description "Set the value of a property on files, dirs, or revisions"
complete -c svn -n '__fish_use_subcommand' -xa 'resolved' --description "Remove conflicted state on working copy files or directories"
complete -c svn -n '__fish_use_subcommand' -xa 'revert' --description "Restore pristine working copy file"
complete -c svn -n '__fish_use_subcommand' -xa 'status stat st' --description "Print the status of working copy files and directories"
complete -c svn -n '__fish_use_subcommand' -xa 'switch sw' --description "Update the working copy to a different URL"
complete -c svn -n '__fish_use_subcommand' -xa 'unlock' --description "Unlock working copy paths or URLs"
complete -c svn -n '__fish_use_subcommand' -xa 'update up' --description "Bring changes from the repository into the working copy"
# -s/--revision
complete -c svn -n '__fish_seen_subcommand_from blame cat checkout info list log merge move propdel propedit propget proplist switch update' -x -s r -l revision --description "Specify revision"
# --targets
complete -c svn -n '__fish_seen_subcommand_from add commit import info lock log resolved revert unlock' -r -l targets --description "Pass contents of file as additional args"
# -N/--non-recursive
complete -c svn -n '__fish_seen_subcommand_from add checkout commit import merge status switch update' -s N -l non-recursive --description "Don't recurse"
# -q/--quiet
complete -c svn -n '__fish_seen_subcommand_from add checkout commit import log merge mkdir move propdel proplist resolved revert status switch update help' -s q -l quiet --description "Print as little as possible"
# --force
complete -c svn -n '__fish_seen_subcommand_from add lock merge move propedit unlock' -l force --description "Force operation to run"
# --auto-props
complete -c svn -n '__fish_seen_subcommand_from add' -l auto-props --description "Enable automatic properties"
# --no-auto-props
complete -c svn -n '__fish_seen_subcommand_from add' -l no-auto-props --description "Disable automatic properties"
# -v/--verbose
complete -c svn -n '__fish_seen_subcommand_from blame cat log proplist status' -s v -l verbose --description "Print extra info"
# --username
complete -c svn -n '__fish_seen_subcommand_from blame cat checkout commit import info list lock log merge mkdir move propdel propedit propget proplist status switch unlock update' -x -l username --description "Specify a username"
# --password
complete -c svn -n '__fish_seen_subcommand_from blame cat checkout commit import info list lock log merge mkdir move propdel propedit propget proplist status switch unlock update' -x -l password --description "Specify a password"
# --no-auth-cache
complete -c svn -n '__fish_seen_subcommand_from blame cat checkout commit import info list lock log merge mkdir move propdel propedit propget proplist status switch unlock update' -l no-auth-cache --description "Don't cache auth tokens"
# --non-interactive
complete -c svn -n '__fish_seen_subcommand_from blame cat checkout commit import info list lock log merge mkdir move propdel propedit propget proplist status switch unlock update' -l non-interactive --description "Do no interactive prompting"
# --config-dir
complete -c svn -n '__fish_seen_subcommand_from add cleanup blame cat checkout commit import info list lock log merge mkdir move propdel propedit propget proplist resolved revert status switch unlock update help' -r -l config-dir --description "Read user config files from named directory"
# --no-unlock
complete -c svn -n '__fish_seen_subcommand_from commit import' -l no-unlock --description "Don't unlock targets"
# -m/--message
complete -c svn -n '__fish_seen_subcommand_from commit import lock mkdir move' -x -s m -l message --description "Specify commit message"
# -F/--file
complete -c svn -n '__fish_seen_subcommand_from commit import lock mkdir move' -r -s F -l file --description "Read commit message from file"
# --force-log
complete -c svn -n '__fish_seen_subcommand_from commit import lock mkdir move' -l force-log --description "Force log message source validity"
# --editor-cmd
complete -c svn -n '__fish_seen_subcommand_from commit import mkdir move propedit' -x -l editor-cmd --description "Specify external editor"
# --recursive
complete -c svn -n '__fish_seen_subcommand_from info list propdel propget proplist resolved revert' -s R -l recursive --description "Descend recursively"
# --incremental
complete -c svn -n '__fish_seen_subcommand_from list log' -l incremental --description "Give output suitable for concatenation"
# --xml
complete -c svn -n '__fish_seen_subcommand_from list log' -l xml --description "Output in XML"
# --diff3-cmd
complete -c svn -n '__fish_seen_subcommand_from cleanup merge switch update' -x -l diff3-cmd --description "Specify merge command"
# --encoding
complete -c svn -n '__fish_seen_subcommand_from lock mkdir move propedit' -x -l encoding --description "Force encoding"
# --revprop
complete -c svn -n '__fish_seen_subcommand_from propdel propedit propget' -l revprop --description "Operate on revision property"
# --strict
complete -c svn -n '__fish_seen_subcommand_from propget' -l strict --description "Use strict semantics"
# --ignore-externals
complete -c svn -n '__fish_seen_subcommand_from checkout status update' -l ignore-externals --description "Ignore externals definitions"
#
# Flags for svn log
#
set -l logopt -c svn -n 'contains log (commandline -poc)'
complete $logopt -l stop-on-copy --description "Do not cross copies"
complete $logopt -l limit --description "Maximum number of log entries"
#
# Flags for svn merge
#
set -l mergeopt -c svn -n 'contains merge (commandline -poc)'
complete $mergeopt -l dry-run --description "Make no changes"
complete $mergeopt -l ignore-ancestry --description "Ignore ancestry when calculating merge"
#
# Flags for svn status
#
set -l statusopt -c svn -n 'contains status (commandline -poc)'
complete $statusopt -s u -l show-updates --description "Display update information"
complete $statusopt -l no-ignore --description "Disregard ignores"
#
# Flags for svn switch
#
set -l switchopt -c svn -n 'contains switch (commandline -poc)'
complete $switchopt -l relocate --description "Relocate VIA URL-rewriting"
#
# Flags for svn help
#
set -l helpopt -c svn -n 'contains help (commandline -poc)'
complete $helpopt -l version --description "Print client version info"
#
# Flags for svn delete
#
set -l deleteopt -c svn -n 'contains delete (commandline -poc)'
complete $deleteopt -l force --description "force operation to run"
complete $deleteopt -s q -l quiet --description "print as little as possible"
complete $deleteopt -l targets --description "pass contents of file ARG as additional args"