Commit Graph
10 Commits
Author SHA1 Message Date
Jack Nagel e237dd274c prune: add dry-run mode 2013-05-15 12:57:01 -05:00
Jack Nagel 5ba5e21536 Run tap --repair as part of prune
And by extension, `cleanup`.

Fixes #18658.
2013-04-13 17:23:14 -05:00
Jack Nagel 4d341f2115 Don't shadow outer local variables 2013-02-18 12:13:36 -06:00
Jack Nagel 30dc1bea9a Prune LinkedKegs relative to correct path
Fixes #16948.
2013-01-08 11:03:13 -06:00
Jack Nagel 5123a77842 Hoist top-level directory list into a constant 2012-11-06 12:32:09 -06:00
Jack Nagel d011bd0c5d Don't attempt to walk nonexistent directories
Fixes #11298.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-04-17 17:10:47 -05:00
Jack Nagel 3e273cd121 prune: remove info dir entries for pruned files
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01 22:52:15 -06:00
Max Howell c292ae9145 Prune LinkedKegs too 2011-08-28 11:40:03 +01:00
Adam Vandenberg 05d175d51f Use + instead of /. 2011-03-12 11:55:07 -08:00
Max Howell 9afc85ad33 Refactor the brew command into one file per command
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.

But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.

If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.

Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00