aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/tap.rb
AgeCommit message (Collapse)Author
2017-04-22More deprecations.Mike McQuaid
Deprecate more methods. Internal APIs have been verified to be unused elsewhere and removed. External APIs have had deprecation methods added. Existing deprecations have been either upgraded to produce warnings or no longer deprecated and the reasoning documented.
2017-02-26Install tap command completions and manpagesJoshua McKinney
Taps can include completion scripts for external commands under `completions/bash`, `completions/fish`, or `completions/zsh`. `brew tap` will automatically install these into the correct directories during install.
2016-10-02Use `module_function` for commands.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-05-30tap: default to full clones for developers. (#297)Mike McQuaid
You need a non-shallow clone to push branches upstream so if you often tap and untap taps (e.g. `homebrew/boneyard`) then you need to remember to manually `fetch -unshallow`.
2016-04-10Add all the top level commentsMax Nordlund
2016-04-05tap: support --full even if installedilovezfs
Makes `tap` re-runnable and unshallows when requested with `--full`. Tapping with a different URL raises an exception. The homebrew/core tap cannot be untapped with `untap` so running `brew tap --full homebrew/core` is now a built-in way to get a full clone of this tap without resorting to workarounds. Closes #17. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-04-02remove migrate_tapsXu Cheng
We don't need to migrate the tapped formulae from symlink-based to directory-based structure any more. Instead, we add core tap install check for `brew update-report` which will be invoked by `brew update`.
2016-03-07rename CoreFormulaRepository to CoreTapXu Cheng
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
2016-02-26tap: support --quieter flagXu Cheng
Closes Homebrew/homebrew#49551. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-12-26tap: improve arguments resolutionXu Cheng
* Use `ARGV.include?` instead of `ARGV.first ==`, so users can pass `-v`/`-d` before the function flags(i.e. `--list-pinned` etc) * Restore the ability to call `brew tap --flags tap/name`.
2015-12-25tap: don't backtrace on invalid options.Mike McQuaid
Closes Homebrew/homebrew#47162.
2015-12-19move CoreFormulaRepository into separate fileXu Cheng
For users whose local brew is at around 2015-06-11 to 2015-08-06, running `brew update` will emit following error: Error: uninitialized constant Formulary::CoreFormulaRepository This is caused by the same bug described in Homebrew/homebrew#42553. This commit workarounds this issue and restores `brew update` compatibility for users mentioned above. Also cleanup legacy `require "cmd/tap"`.
2015-12-09Allow taps to link manpages.Mike McQuaid
A blocker for https://github.com/caskroom/homebrew-cask/pull/15381 being merged. Closes Homebrew/homebrew#46795.
2015-12-09remove unnecessary tap_argsXu Cheng
It's now handled by Tap.fetch
2015-11-10tap: warn already tappedXu Cheng
2015-11-10tap: don't error when already tapped.Mike McQuaid
2015-11-09add Tap#install and Tap#uninstallXu Cheng
2015-10-13let the user know what exactly was already tappedSøren Brokær
Closes Homebrew/homebrew#44843. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-09-30cache tapsXu Cheng
There are plenty of IO operations inside Tap object, and it will be more when implementing formula alias reverse look up(e.g. list all of alias names for a formula). So let's cache them. Some benchmark: $ time brew info $(brew ruby -e 'puts Formula.tap_names') > /dev/null Before: 6.40s user 2.42s system 96% cpu 9.134 total After: 4.75s user 0.77s system 97% cpu 5.637 total Closes Homebrew/homebrew#44377. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-08Improve description searching and add a cache.Dan Martinez
Closes Homebrew/homebrew#42281. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-02tap: ensure git is installedXu Cheng
Closes Homebrew/homebrew#43463. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-28tap: rmdir when tap failed or interruptedXu Cheng
Fixes Homebrew/homebrew#43280. Closes Homebrew/homebrew#43352. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-21tap: add --list-pinnedXu Cheng
2015-08-18unnecessary calls to .select simplifiedBaptiste Fontaine
These are minor perf optimizations. Closes Homebrew/homebrew#43028. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-03shell completion of official taps added to 'brew tap'Baptiste Fontaine
Closes Homebrew/homebrew#42421. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-14Tap: make remote a separate method to reduce initial overheadXu Cheng
Also make remote method only response to installed tap.
2015-06-11(un)tap/update/readall: use Tap classXu Cheng
2015-06-08tap: fix Homebrew/homebrew#40487Xu Cheng
2015-06-05brew tap: allow tapping non-GitHub repositories.Peter Aronoff
`brew tap` restricts users to GitHub and checks for private repos. I created `brew any-tap` to support a wider variety of taps. With very small changes (and no extra flags!), this change allows users to use `brew tap` with GitHub as they always have or add one extra argument and tap any repository of any type from anywhere. brew tap user/name # Same as it ever was brew tap user/name URL # Tap URL, whatever it happens to be Closes Homebrew/homebrew#40326. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-27tap/untap/update/prune: remove obsolete method, add migrate_tapsXu Cheng
2015-05-08tap: support fast cloneXu Cheng
Closes Homebrew/homebrew#37592. Closes Homebrew/homebrew#38268. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-04-09tap: better match install format.Mike McQuaid
2015-02-01untap: Handle multiple argumentschdiza
Closes Homebrew/homebrew#36436. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-09-27Don't warn about tap conflicts during pruningJack Nagel
Fixes Homebrew/homebrew#32710.
2014-09-19Clarify "could not tap" warningJack Nagel
Closes Homebrew/homebrew#31451. Closes Homebrew/homebrew#32223.
2014-07-06Remove redundant "which git" guardsJack Nagel
There is always a git executable on PATH due to the git wrapper in Library/Contributions/cmd. The wrapper will notify the user if there is not a real git installed.
2014-07-06Make tap_ref match similar code in updateJack Nagel
2014-07-06Escape paths in regexpsJack Nagel
2014-06-20Use multiple argument form of systemJack Nagel
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-05-31Prefer Dir.glob when iterating over the resultJack Nagel
2014-05-26pluralize formulae in tap/untapAdam Vandenberg
Closes Homebrew/homebrew#28560.
2014-05-14Taps: cleanup regexps around TapsTsukasa OMOTO
Closes Homebrew/homebrew#29139. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-03The \w character class already includes underscoreJack Nagel
Newer versions of Ruby issue a warning for repeated character classes.
2014-04-25Yield absolute paths from find_formulaJack Nagel
2014-04-25Pass around only absolute paths when dealing with tapsJack Nagel
2014-04-25Extract some boilerplate into an each_tap methodJack Nagel
2014-04-24Pass arguments instead of reopening PathnameJack Nagel