Pass the `--no-pager` flag to git when grabbing a diff summary for a patch as
there is no good reason to invoke a pager for ~2-10 lines that the user must
then exit manually.
Fixes errors like:
```
$ brew services restart mysql
Error: Formula `mysql` not installed, #startup_plist not implemented or
no plist file found
```
Closes#16378.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
* Renames --force to --overwrite, freeing up brew ln --force for #13349
* Changes --dry-run to preview linking by default, rather than
overwriting. An overwrite dry-run can be simulated via both
--dry-run --overwrite
* Adds some basic Keg tests
When the current working directory is the root of the build tree, copy
it instead of moving it, otherwise an exception will be raised when we
try to clean up the build tree later.
Noticed when unpacking the vim source tree from a mercurial checkout.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
`brew linkapps` was creating `MacVim` on the first run, then
`MacVim alias` on the second run.
Closes#14955.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Symlinks to apps don't play well with Spotlight, but Finder alises do,
so let's create them instead.
Closes#14821.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This script fetches the current list of aspell dictionaries from
the gnu server and generates formulae that can then be
included into the aspell formula.
This makes updating current dictionaries and adding new ones easier.
Tweaked by Mike to generate SHA1s instead of MD5s.
Closes#12180.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Two wrapper scripts that find git and svn using the ENV variables we support and then searching through the PATH and looking inside Xcode.app if necessary.
Now just calling git or svn in Homebrew code will find and exec the right tool and we can stop fussing.
Apologies to @adamv who is probably unimpressed that the cmds directory has non-commands in it now. If it's consolation these are temporary pending some more work on superenv whereby some more directories are created under the superenv root.
Closes#13689.
Signed-off-by: Max Howell <mxcl@me.com>
There are subtle distinctions between writable? and writable_real? we don't
understand precisely why we need this, but it fixes the bugs :/
The fish completion hadn't been updated since 2009; this brings it up
to date. Changes include:
* Create the list of commands the same way as in bash completion
* Add every option for every current command, with descriptions
* Fixes a bug in fish_complete_brew_command
* Allow fish_complete_brew_command to take multiple commands
* Expand functionality of fish_complete_homebrew_formula to support
other commands and taps, and change name to reflect new functionality
Tested on fishfish, but should be compatible with fish.
Commit 3b5d7939d9 added completion for
`brew link` options, but disabled completion of the actual command
itself.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
`brew link` can now be made to delete any conflicting files using
the --force argument. It also has a --dry-run option, similar to
git clean -n, which will list any files which would be deleted
without touching the filesystem.
Closes#11811.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>