Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions repo.bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,10 @@ _dir_completion() {
}

_project_completion() {
local repo_root=$(_find_repo)

if [ -n "${repo_root}" -a -f "${repo_root}/.repo/project.list" ]
then
local projects=$(cat "${repo_root}/.repo/project.list")
_gen_comps "${projects}"
fi
# Retrieve a list of all repo project names (as opposed to project paths)
local projects
projects=$(repo forall -c 'echo $REPO_PROJECT' 2>/dev/null)
_gen_comps "${projects}"
}

_manifest_completion() {
Expand Down