]> git.baikalelectronics.ru Git - kernel.git/commit
perf completion: Factor out call to __ltrim_colon_completions
authorRamkumar Ramachandra <artagnon@gmail.com>
Sun, 17 Nov 2013 16:13:25 +0000 (21:43 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 27 Nov 2013 17:58:35 +0000 (14:58 -0300)
commitd9a9012037b29def08522b84878d46364ca230ae
treec4f3e5bf051aea2081b1082302ed29247c427de6
parent38cdfdd7043ecf7d032d0aa86204503dc827695f
perf completion: Factor out call to __ltrim_colon_completions

In our sole callsite, __ltrim_colon_completions is called after
__perfcomp, to modify the COMPREPLY set by the invocation.

This is problematic, because in the zsh equivalent (using compset/
compadd), we'll have to generate completions in one-shot.

So factor out this entire callsite into a special override'able
__perfcomp_colon function; we will override it when introducing zsh
support.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Link: http://lkml.kernel.org/r/1384704807-15779-4-git-send-email-artagnon@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bash_completion