diff options
| author | Mike McQuaid | 2017-12-31 09:42:36 +0000 |
|---|---|---|
| committer | GitHub | 2017-12-31 09:42:36 +0000 |
| commit | e048106624264fa07cb3e52059ef2d69d0980dbd (patch) | |
| tree | 42c9251ab78ccc298ce54578925379c86b5f392d /Library/Homebrew/missing_formula.rb | |
| parent | 884a2f3667f21109b569d129591199619e76dbe8 (diff) | |
| parent | 799312c5fc45b24ef38e31e54f43e385ad412d53 (diff) | |
| download | brew-e048106624264fa07cb3e52059ef2d69d0980dbd.tar.bz2 | |
Merge pull request #3614 from MikeMcQuaid/previously-deleted-month
missing_formula: check deleted in the last month.
Diffstat (limited to 'Library/Homebrew/missing_formula.rb')
| -rw-r--r-- | Library/Homebrew/missing_formula.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/missing_formula.rb b/Library/Homebrew/missing_formula.rb index 97ed5749a..146c3e984 100644 --- a/Library/Homebrew/missing_formula.rb +++ b/Library/Homebrew/missing_formula.rb @@ -122,7 +122,7 @@ module Homebrew tap.path.cd do unless silent - ohai "Searching for a previously deleted formula..." + ohai "Searching for a previously deleted formula (in the last month)..." if (tap.path/".git/shallow").exist? opoo <<~EOS #{tap} is shallow clone. To get complete history run: @@ -132,7 +132,7 @@ module Homebrew end end - log_command = "git log --name-only --max-count=1 --format=%H\\\\n%h\\\\n%B -- #{relative_path}" + log_command = "git log --since='1 month ago' --diff-filter=D --name-only --max-count=1 --format=%H\\\\n%h\\\\n%B -- #{relative_path}" hash, short_hash, *commit_message, relative_path = Utils.popen_read(log_command).gsub("\\n", "\n").lines.map(&:chomp) |
