pg_search
https://github.com/casecommons/pg_search
Ruby
pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search
Gitlab::Git::Repository#clean
Mimic the `git clean` command and recursively delete untracked files.
Valid keys that can be passed in the +options+ hash are:
:d - Remove untracked directories
:f - Remove untracked directories that are managed by a different
repository
:x - Remove ignored files
The value in +options+ must evaluate to true for an option to take
effect.
Examples:
repo.clean(d: true, f: true) # Enable the -d and -f options
repo.clean(d: false, x: true) # -x is enabled, -d is notEdit
git clone [email protected]:casecommons/pg_search.git
cd pg_search
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Git--Repository-clean-for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Git::Repository#clean"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Git--Repository-clean-for-pr
hub pull-request
# Celebrate!