aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/untap.rb
AgeCommit message (Collapse)Author
2015-04-09untap: better match uninstall format.Mike McQuaid
2015-02-01untap: Handle multiple argumentschdiza
Closes #36436. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-05-26pluralize formulae in tap/untapAdam Vandenberg
Closes #28560.
2014-04-25Yield absolute paths from find_formulaJack Nagel
2014-04-25Pass around only absolute paths when dealing with tapsJack Nagel
2014-04-24Don't use a regexp to match paths, just compare them for equalityJack Nagel
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes #28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-04-02tap/untap: use Array#length, not #countMisty De Meo
Array#count was apparently introduced in 1.8.7.
2013-03-04tap: adjust formula count for unsymlinked filesMisty De Meo
Relying on the output of `tapped` results in ignoring formulae which already exist in core, with messages like "Tapped 0 formula" for non-empty taps.
2013-03-02A more helpful error message for `brew untap`Peter Aronoff
`brew untap` without arguments currently errors out (as it should), but the error message is generic and unhelpful. (The error message is borrowed from a method in the tap command - `tap_args`.) Closes #18186. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2012-03-23Check tapped before trying to untapMax Howell
If the tap-formula wasn't symlinked for some reason, don't throw an exception—the job is already done.
2012-03-18Special case Homebrew organization tapsMax Howell
We allow homebrew/dupes for instance, rather than Homebrew/dupes. Because nobody likes shifting in the terminal. In the process of doing this I discovered some case-insensitive filesystem bugs we have avoided before because I had the foresight to mandate lowercase in formula names. GitHub considers Homebrew and homebrew to be different (even though you can't create both). So we had to allow case insensitivity in tap input. I have made it now so the resulting directory however is lowercased, neatly avoiding the issue. And so we also downcase tap arguments when applying them to tap directories or formula.
2012-03-18Generalise the untap step so we can add to updateMax Howell
brew-update needs to be able to unsymlink removed stuff from taps too.
2012-03-16Don't break if symlink already exists during tapMax Howell
This shouldn't happen but is possible and we should handle it. Also added some puts when tapping/untapping.
2012-03-16HOMEBREW_LIBRARYMax Howell
I got fed up writing HOMEBREW_REPOSITORY/"Library" and also correcting mistakes when I did HOMEBREW_PREFIX instead.
2012-03-16Pathname.atomic_writeMax Howell
2012-03-16Prevent tapped symlinks showing up in git statusMax Howell
The symlinks taps write to Formula show up in git status, but this trick prevents this. brew-(un)tap maintain a .gitignore in Formula that contains all the symlinks brew-tap creates. We add the .gitignore to the root .gitignore and TADA! Magic.
2012-03-16`brew tap` and `brew untap`Max Howell