Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

New formula: git-diff-grep #8913

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions Library/Formula/git-diff-grep.rb
@@ -0,0 +1,14 @@
require 'formula'

class GitDiffGrep < Formula
homepage 'https://github.com/oscardelben/git-diff-grep'
head "https://github.com/oscardelben/git-diff-grep.git"

def install
bin.install "git-diff-grep" => "git-diff-grep"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The => syntax is only necessary when you're renaming the file. If the name is staying the same, you can write it shorter as bin.install "git-diff-grep"

end

def test
system "brew test git-diff-grep"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is wrong; brew test invokes this test method.

end
end