brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Keg.find_some_installed_dependents

Given an array of kegs, this method will try to find some other kegs
that depend on them.

If it does, it returns:
- some kegs in the passed array that have installed dependents
- some installed dependents of those kegs.

If it doesn't, it returns nil.

Note that nil will be returned if the only installed dependents
in the passed kegs are other kegs in the array.

For efficiency, we don't bother trying to get complete data.

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/keg.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Keg-find_some_installed_dependents-for-pr


# Commit to git

git add Library/Homebrew/keg.rbgit commit -m "better docs for Keg.find_some_installed_dependents"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Keg-find_some_installed_dependents-for-pr

hub pull-request


# Celebrate!