1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
Subject: Add completion for the cvs log command
Origin: vendor, https://bugs.debian.org/892080
Bug-Debian: https://bugs.debian.org/892080
Forwarded: yes, https://github.com/scop/bash-completion/pull/194
The 'cvs log' command takes two types of arguments: options and files.
As reported by a Debian user [1], completion with filenames is not
working. As a matter of fact, nor are completions with options. This
patch adds completions for filenames and options to 'cvs log'.
[1] https://bugs.debian.org/892080
diff --git a/completions/cvs b/completions/cvs
index fee256f2..357841ad 100644
--- a/completions/cvs
+++ b/completions/cvs
@@ -264,7 +264,7 @@ _cvs()
cvsroot)
_cvs_roots
;;
- diff)
+ diff|log)
if [[ "$cur" == -* ]]; then
_cvs_command_options "$1" $mode
[[ $COMPREPLY == *= ]] && compopt -o nospace
|