fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
f0a54510c
master
1# 2# Completions for GNU patch 3# TODO: POSIX patch 4# 5 6# No effect on POSIX systems that don't use O_BINARY/O_TEXT 7uname -s| string match -q CYGWIN\* 8and complete -c patch -l binary -d"Read & write data in binary mode" 9 10complete -c patch -s b -l backup -d"Back up the original contents of each file" 11complete -c patch -l backup-if-mismatch -d"Back up files if patch doesn't match exactly" 12complete -c patch -l no-backup-if-mismatch -d"Don't back up for mismatching patches" 13complete -c patch -s B -l prefix -x -d"Prepend PREFIX to backup filenames" 14complete -c patch -s c -l context -d"Interpret patch as context diff" 15complete -c patch -s d -l directory -xa'(__fish_complete_directories (commandline -ct))' -d"Change directory to DIR first" 16complete -c patch -s D -l ifdef -x -d"Make merged if-then-else output using NAME" 17complete -c patch -l dry-run -d"Don't change files; just print what would happen" 18complete -c patch -s e -l ed -d"Interpret patch as an 'ed' script" 19complete -c patch -s E -l remove-empty-files -d"Remove output files empty after patching" 20complete -c patch -s f -l force -d"Like -t, but ignore bad-Prereq patches, assume unreversed" 21complete -c patch -s F -l fuzz -x -d"Number of LINES for inexact 'fuzzy' matching" -a"(seq 0 9){\tfuzz lines}" 22complete -c patch -s g -l get -x -d"Get files from RCS etc. if positive; ask if negative" -a'(seq -1 1){\t\n}' 23complete -c patch -l help -f -d"Display help" 24complete -c patch -s i -l input -x -d"Read patch from FILE instead of stdin" -k -a"( __fish_complete_suffix .patch .diff)" 25complete -c patch -s l -l ignore-whitespace -d"Ignore whitespace changes between patch & input" 26complete -c patch -s n -l normal -d"Interpret patch as normal diff" 27complete -c patch -s N -l forward -d"Ignore patches that seem reversed or already applied" 28complete -c patch -s o -l output -r -d"Output patched files to FILE" 29complete -c patch -s p -l strip -x -d"Strip NUM path components from filenames" -a"(seq 0 9){\t\n}" 30complete -c patch -l posix -d"Conform to the POSIX standard" 31complete -c patch -l quoting-style -x -d"Output file names using quoting style" -a"literal shell shell-always c escape" 32complete -c patch -s r -l reject-file -r -d"Output rejects to FILE" 33complete -c patch -s R -l reverse -d"Assume patches were created with old/new files swapped" 34complete -c patch -s s -l silent -l quiet -d"Work silently unless an error occurs" 35complete -c patch -s t -l batch -d"Ask no questions; skip bad-Prereq patches; assume reversed" 36complete -c patch -s T -l set-time -d"Set times of patched files assuming diff uses local time" 37complete -c patch -s u -l unified -d"Interpret patch file as a unified diff" 38complete -c patch -s v -l version -d"Display version" 39complete -c patch -s V -l version-control -x -d"Use method to determine backup file names" -a"simple numbered existing" 40complete -c patch -l verbose -d"Output extra information about work being done" 41complete -c patch -s x -l debug -x -d"Set internal debugging flags" 42complete -c patch -s Y -l basename-prefix -x -d"Prepend PREFIX to backup file basenames" 43complete -c patch -s z -l suffix -x -d"Append SUFFIX to backup file name" 44complete -c patch -s Z -l set-utc -d"Set times of patched files assuming diff uses UTC"