File: 08-completion-for-cvs-log.patch

package info (click to toggle)
bash-completion 1%3A2.8-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 8,860 kB
  • sloc: exp: 9,759; makefile: 1,104; sh: 261; perl: 56; python: 47; xml: 29; ansic: 7; ruby: 2
file content (26 lines) | stat: -rw-r--r-- 962 bytes parent folder | download
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