completions/diff: allow file completion for --unified (#10796)

* completions/diff: allow file completion for --unified

* Update diff.fish

* Update diff.fish
This commit is contained in:
Jason Nader 2024-10-19 23:58:29 +09:00 committed by GitHub
parent b625c566b1
commit 6082c3f77a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,8 +12,8 @@ complete -c diff -s r -l recursive -d "Recursively compare subdirectories"
complete -c diff -s N -l new-file -d "Treat absent files as empty"
complete -c diff -s C -l context -x -d "Output NUM lines of copied context"
complete -c diff -s c -d "Output 3 lines of copied context"
complete -c diff -s U -l unified -x -d "Output NUM lines of unified context"
complete -c diff -s u -d "Output 3 lines of unified context"
complete -c diff -s U -x -d "Output NUM lines of unified context"
complete -c diff -s u -l unified -d "Output NUM lines of unified context (default 3)"
complete -c diff -s q -l brief -d "Output only whether the files differ"
complete -c diff -l normal -d "Output a normal diff"
complete -c diff -s y -l side-by-side -d "Output in two columns"