alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Gitlab::Diff::FileCollection::MergeRequestDiff#cache_highlight!
If we find the highlighted diff files lines on the cache we replace existing diff_files lines (no highlighted) for the highlighted ones, so we just skip their execution. If the highlighted diff files lines are not cached we calculate and cache them. The content of the cache is a Hash where the key identifies the file and the values are Arrays of hashes that represent serialized diff lines.
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gitlab--Diff--FileCollection--MergeRequestDiff-cache_highlight--for-pr
# Commit to gitgit add git commit -m "better docs for Gitlab::Diff::FileCollection::MergeRequestDiff#cache_highlight!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gitlab--Diff--FileCollection--MergeRequestDiff-cache_highlight--for-pr
hub pull-request
# Celebrate!