Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333953
b: refs/heads/master
c: a1d668c
h: refs/heads/master
i:
  333951: f8bd848
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Oct 2, 2012
1 parent be4b7fe commit a328227
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 002439e84ed67cbb33cab4057fcd6a4146c0f815
refs/heads/master: a1d668c3ffd38d611f8446615e8f797dcfdfc397
15 changes: 13 additions & 2 deletions trunk/tools/perf/bash_completion
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# perf completion

function_exists()
{
declare -F $1 > /dev/null
return $?
}

have perf &&
_perf()
{
local cur cmd
local cur prev cmd

COMPREPLY=()
_get_comp_words_by_ref cur prev
if function_exists _get_comp_words_by_ref; then
_get_comp_words_by_ref cur prev
else
cur=$(_get_cword)
prev=${COMP_WORDS[COMP_CWORD-1]}
fi

cmd=${COMP_WORDS[0]}

Expand Down

0 comments on commit a328227

Please sign in to comment.