Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: tools/bash-completion

Issue 9307098: bash-completion: use simpler git ls-files command (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/bash-completion
diff --git a/tools/bash-completion b/tools/bash-completion
index 229582c1f64332df80ab0345a7e80e9f4da81a3f..6a1b89a964e842913917163d4d963cf318d33bb8 100644
--- a/tools/bash-completion
+++ b/tools/bash-completion
@@ -11,7 +11,7 @@ _chrome_flag() {
local cur targets
cur="${COMP_WORDS[COMP_CWORD]}"
targets=$(cd $chrome_source; \
- git ls-files | grep switches | \
+ git ls-files '*switches*' | \
xargs sed -ne 's/^[^/]*"\([^" /]\+\)".*/--\1/p')
COMPREPLY=($(compgen -W "$targets" -- "$cur"))
return 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698