From 7b1b1dbb453cfa78288ee93ce5fb972c68f67298 Mon Sep 17 00:00:00 2001 From: Sebastien Alaiwan Date: Thu, 17 Apr 2014 21:58:13 +0200 Subject: 32562: updates for bzr completion --- ChangeLog | 3 +++ Completion/Unix/Command/_bzr | 12 ++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1272d64cb..2cf2df900 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-04-23 Peter Stephenson + * Sebastien Alaiwan: 32562: Completion/Unix/Command/_bzr: + updates for bzr completion. + * Jasper Lievisse Adriaanse: 32558: configure.ac: _XOPEN_SOURCE_EXTENDED now works OK on OpenBSD. diff --git a/Completion/Unix/Command/_bzr b/Completion/Unix/Command/_bzr index ab9fd728d..c28c2148e 100644 --- a/Completion/Unix/Command/_bzr +++ b/Completion/Unix/Command/_bzr @@ -46,6 +46,14 @@ _bzr_versionedFiles() { return 0 } +(( $+functions[_bzr_modifiedFiles] )) || +_bzr_modifiedFiles() { + local fileList + fileList=(${(ps:\0:)"$(bzr status . --versioned --short | cut -b 5- | tr '\n' '\0')"}) + compadd -af fileList + return 0 +} + (( $+functions[_bzr_completeParents] )) || _bzr_completeParents() { local parentFile=$(bzr root 2>/dev/null)/.bzr/branch/parent @@ -214,7 +222,7 @@ case $cmd in '--unchanged[include unchanged files]' '(-q --quiet -v --verbose)'{--quiet,-q}'[be quiet]' '(-v --verbose -q --quiet)'{--verbose,-v}'[display more information]' - '*:modified files:_bzr_versionedFiles' + '*:modified files:_bzr_modifiedFiles' ) ;; @@ -300,7 +308,7 @@ case $cmd in args+=( '--no-backup[skip generation of backup~ files]' '(-r --revision)'{--revision=,-r}'[revision]:revision:' - '*:file:_bzr_versionedFiles' + '*:file:_bzr_modifiedFiles' ) ;; -- cgit 1.4.1