rails_admin

https://github.com/railsadminteam/rails_admin

Ruby

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data

Gitlab::Diff::DiffRefs#complete?

There is only one case in which we will have `start_sha` and `head_sha`,
but not `base_sha`, which is when a diff is generated between an
orphaned branch and another branch, which means there _is_ no base, but
we're still able to highlight it, and to create diff notes, which are
the primary things `DiffRefs` are used for.
`DiffRefs` are "complete" when they have `start_sha` and `head_sha`,
because `base_sha` can always be derived from this, to return an actual
sha, or `nil`.
We have `base_sha` directly available on `DiffRefs` because it's faster#
than having to look it up in the repo every time.

Source | Google | Stack overflow

Edit

git clone [email protected]:railsadminteam/rails_admin.git

cd rails_admin

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gitlab--Diff--DiffRefs-complete--for-pr


# Commit to git

git add git commit -m "better docs for Gitlab::Diff::DiffRefs#complete?"


# 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--Diff--DiffRefs-complete--for-pr

hub pull-request


# Celebrate!