Mike McQuaid
|
5987c5c1d0
|
Add stub Ruby commands for all Bash commands.
This gets us pretty similar (but easier to manage) manpage output but
much nicer completions etc. for all these commands.
|
2024-07-14 23:12:53 -04:00 |
|
Mike McQuaid
|
d60d2fe158
|
cmd/--version: don't always output homebrew/core.
This is more confusing than helpful if it's untapped for API usage.
|
2023-02-17 13:39:57 +00:00 |
|
XuehaiPan
|
3f96d963f7
|
style: fix inconsistent code style for shell scripts
|
2021-09-15 14:59:01 +08:00 |
|
hyuraku
|
d68e1fccbc
|
cmd/--version: repair style
|
2021-04-28 20:47:24 +09: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 |
|