Alexander Bayandin
7aacda1754
formula: add fuzzy_search method
2021-06-22 18:06:52 +01:00
Rylan Polster
60203afdd5
Merge env variables into HOMEBREW_JSON_CORE
2021-06-18 12:10:26 -04:00
Rylan Polster
1d516b628b
Use #present?
and #blank?
to check env variable
2021-06-18 12:07:34 -04:00
Rylan Polster
2760d981d3
Allow for homebrew/core to be untapped
2021-06-17 14:18:43 -04:00
Connor Mann
a7ca15d8e9
Override user-set default git template
2021-05-14 10:47:52 -04:00
cnnrmnn
0b5f440cfc
Remove reference to full_clone in CoreTap
2021-05-07 16:47:58 -04:00
cnnrmnn
b5569ffd33
Remove full_clone from CoreTap
2021-05-07 16:47:58 -04:00
cnnrmnn
674594f75c
Stop using shallow clones for taps
2021-05-06 10:10:56 -04:00
Zach Auten
95c8f445fa
Fix bump-formula-pr for taps with ssh remote url.
2021-04-22 22:02:09 -04:00
Rylan Polster
0b214da4eb
tap: cleanup remote_repo
method
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-03-22 08:54:38 -04:00
Rylan Polster
4e61f61a20
utils/github: handle non-standard tap remotes
2021-03-21 12:35:45 -04:00
Mike McQuaid
dc1fdc9f8d
Speedup brew --version
.
...
Port `brew --version` to Bash to speed it up.
While we're here:
- remove (now) unused `Tap` Git methods
- use `--quiet` instead of `-q` to be more verbose
Benchmarks:
```
$ hyperfine --min-runs=3 --warmup=2 "git checkout origin/master; brew --version" "git checkout speedup_brew_version; brew --version"
Benchmark #1 : git checkout origin/master; brew --version
Time (mean ± σ): 2.083 s ± 0.004 s [User: 396.8 ms, System: 597.2 ms]
Range (min … max): 2.080 s … 2.088 s 3 runs
Benchmark #2 : git checkout speedup_brew_version; brew --version
Time (mean ± σ): 847.9 ms ± 35.2 ms [User: 100.0 ms, System: 247.9 ms]
Range (min … max): 824.1 ms … 888.3 ms 3 runs
Summary
'git checkout speedup_brew_version; brew --version' ran
2.46 ± 0.10 times faster than 'git checkout origin/master; brew --version'
```
2021-03-04 12:59:42 +00:00
nandahkrishna
56e0c3d9e8
Update GitHub API usage
2021-02-15 22:38:27 +05:30
Gibson Fahnestock
0f48498ad8
fix(tap): set clone remote name to origin explicitly
...
Git now allows setting a different default remote name than `origin`
when you do a fresh clone by running:
```shell
git config --global clone.defaultRemoteName notorigin
```
This causes `brew tap <tap_name> && brew update` to fail, as it clones
with a different remote name in the `tap` and then expects the remote to
be `origin` in the `update`.
Fix this by explicitly setting the origin remote in the clone command.
2021-02-09 15:29:54 +00:00
Rylan Polster
84fc16c1c1
Apply suggestions from code review
...
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2021-01-28 09:10:14 -05:00
Rylan Polster
4bdc11ddc9
tap: fix renamed branches with brew tap --repair
2021-01-28 09:10:13 -05:00
EricFromCanada
a427de5bee
capitalization fixes
...
"curl" is the binary, while "cURL" is the umbrella project.
2021-01-26 15:36:44 -05:00
Rylan Polster
ecfad29347
tap: write untapped setting only on manual untap
2021-01-21 08:42:22 -05:00
Rylan Polster
64816651d0
Only tap homebrew/cask on CaskUnavailableError in brew install
2021-01-20 12:22:31 -05:00
Rylan Polster
ebba369887
Tap: add untapped_official_taps method
2021-01-20 12:02:24 -05:00
Rylan Polster
3ca68c076e
Don't tap user-untapped official taps
2021-01-19 17:55:03 -05:00
Rylan Polster
701989968d
Merge pull request #10268 from Rylan12/completions-opt-out
...
completions: make opt-in only
2021-01-13 16:08:30 -05:00
Rylan Polster
4b8477ba70
Completions, Settings: move to Homebrew namespace
2021-01-13 11:20:28 -05:00
Rylan Polster
f1f3fdc315
settings: add module for managing git config settings
2021-01-12 16:27:25 -05:00
Rylan Polster
e7b369273a
completions: link official taps automatically
2021-01-11 12:27:57 -05:00
Seeker
b9854bd4cf
rubocops: add unless_multiple_conditions
2021-01-08 10:33:54 -08:00
Seeker
02c207a9ec
git_repository: replace compound unless
with equivalent if
2021-01-07 11:45:11 -08:00
Markus Reiter
9649ef975c
Only install default cask tap automatically on macOS.
2020-12-05 03:39:01 +01:00
Rylan Polster
80a46edee4
tap: add style_exceptions configuration
2020-11-30 18:18:49 -05:00
Jonathan Chang
a39344e7e3
tap: read_formula_list JSON file can be an array
2020-11-27 17:45:42 +11:00
Rylan Polster
ee47b863c4
move mapping from formula_lists to pypi_formula_mappings
2020-11-24 15:40:15 -05:00
Rylan Polster
51a1b7c9e1
move pypi list to tap formula_lists directory
2020-11-24 15:40:15 -05:00
Markus Reiter
0184e271d8
Fix RuboCop offenses.
2020-11-17 11:09:55 +01:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Rylan Polster
59b1309900
Merge pull request #9039 from Rylan12/move-audit-allowlist-to-core
...
audit: migrate throttle list to Homebrew/core
2020-11-09 15:14:06 -05:00
Rylan Polster
4ae72e0bdf
tap: add constants for json files
2020-11-09 08:39:56 -05:00
EricFromCanada
3768b7a6e9
apidoc: update comment wording, punctuation, formatting
2020-11-06 00:21:02 -05:00
Rylan Polster
2a941ec6b1
audit, tap: incorporate suggestions from code review
2020-11-05 16:14:09 -05:00
Rylan Polster
f33a4bff37
tap: no-op on invalid audit exception files
...
Also shift logic to directory-based organization instead of a single file with all lists
2020-11-04 23:43:22 -05:00
Rylan Polster
869941bccd
audit: migrate throttle list to Homebrew/core
2020-11-03 13:06:33 -05:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Mike McQuaid
2bdf3deb6f
Reduce shallow clone usage
...
GitHub has requested we request our usage of shallow clones. As a
result:
- do default to shallow clones on CI
- do not do --shallow-since when setting up new repositories in
`brew update`
- do not support shallow clones of homebrew-core at all
We may consider in future unshallowing all clones unconditionally.
2020-10-09 09:57:04 +01:00
Mike McQuaid
f5ffd71266
tap: remove redundant exception.
...
Don't raise an exception only to catch it.
2020-09-30 16:43:47 +01:00
Markus Reiter
fc9a74dd28
Prevent tapping phinze/cask
.
2020-09-28 20:54:56 +02:00
Markus Reiter
05a84c5a3f
Explicitly specify block
argument for each
methods.
2020-09-19 02:03:56 +02:00
nandahkrishna
c1909e80b4
utils/tty: fix TTY handling for stderr
2020-09-17 04:18:13 +05:30
Mike McQuaid
8b97c27c21
brew style manual fixes
2020-09-01 14:26:45 +01:00
Markus Reiter
3118fedab9
Refactor and document Git
.
2020-08-23 06:40:07 +02:00
Bo Anderson
e3372e2a14
Lazily require some heavy files
2020-08-20 02:05:17 +01:00
Markus Reiter
72ce3fabe2
Add cask-eid
to list of deprecated taps.
2020-08-13 04:24:37 +02:00