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::Commit#diff_from_parent

Returns a diff object for the changes from this commit's first parent.
If there is no parent, then the diff is between this commit and an
empty repo.  See Repository#diff for keys allowed in the +options+
hash.

Source | Google | Stack overflow

Edit

git clone [email protected]:casecommons/pg_search.git

cd pg_search

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gitlab--Git--Commit-diff_from_parent-for-pr


# Commit to git

git add git commit -m "better docs for Gitlab::Git::Commit#diff_from_parent"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Gitlab--Git--Commit-diff_from_parent-for-pr

hub pull-request


# Celebrate!