| Age | Commit message (Collapse) | Author |
|
When invoking `brew tap homebrew/core`, the input options will be like
`{ :clone_target => nil }`. This renders `Hash#merge` a dead operation.
It doesn't impact Homebrew itself, but could cause problem for
downstream projects Linxubrew/Tigerbrew when they adopt core/formula
separation.
|
|
Also make `Homebrew/homebrew` as an alias of this tap to keep
backward compatibility.
|
|
It will be auto installed whenever necessary.
|
|
Ensure we don't munge line endings on checkout regardless with user's
global git config.
Closes Homebrew/homebrew#50514.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
As discovered in Homebrew/homebrew#50256, this becomes a performance bottleneck as we are
repeating construct same Pathname object.
At the same, this commit makes the behaviors between Tap and CoreTap more
consistence.
|
|
Core tap will be separated from core code in the near future.
It makes sense to rename it to CoreTap.
|
|
These methods will be used in `brew --version`, `brew config`
and `brew doctor` after core/formula separation.
Closes Homebrew/homebrew#49796.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
This enables tap migration feature in per tap case, which will
ultimately help core/formula separation.
|
|
Return true if given path would present a Formula file in this Tap.
Accepts both absolute path and relative path (relative to this Tap's path)
It offer an abstraction such that caller would not need to worry about
low level file system in the tap.
It will be used in `brew pull` and `brew update`.
Closes Homebrew/homebrew#49191.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
If a tap is installed during the installation, the original cache need
to be purged. Otherwise, it will return wrong information afterwards.
Closes Homebrew/homebrew#48887.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
Fixes Homebrew/homebrew#47684.
|
|
Closes Homebrew/homebrew#47454.
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
|
|
|
|
|
|
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"`.
|
|
A blocker for https://github.com/caskroom/homebrew-cask/pull/15381
being merged.
Closes Homebrew/homebrew#46795.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Closes Homebrew/homebrew#46537.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
|
|
|
|
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>
|
|
|
|
|
|
Closes Homebrew/homebrew#42890.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
- Tap#formula_renames is a method used for getting information
about renames in tap formulae.
|
|
|
|
Closes Homebrew/homebrew#42354.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
Also add a `Tap#git?` method to indicate whether the tap is a git
repository.
Closes Homebrew/homebrew#42264.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
|
|
Closes Homebrew/homebrew#40608.
Signed-off-by: Xu Cheng <xucheng@me.com>
|
|
Also make remote method only response to installed tap.
|
|
For example e.g. Boxen uses just a managed directory and puts formulae
into it.
|
|
|