
If the formula to be retrieved was just version-bumped in the most recent commit (HEAD), we would've ended up grabbing the second-most recent version. Instead, if the file already exists in tree at the current commit, just construct the formula from that to get the version (for naming purposes) and copy the file outright to its new location.
Library
This directory contains all the code run by the official brew
and brew cask
commands in Homebrew
and all formulae (package descriptions) in taps (repositories containing formulae) in Taps
subdirectories.