Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
3762bbf5
Commit
3762bbf5
authored
15 years ago
by
Max Howell
Browse files
Options
Downloads
Patches
Plain Diff
Fix brew info
Removed DEFAULT_USER, etc. constants, as code is clearer with actual values IMO, in this case.
parent
02208387
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/brew.h.rb
+5
-11
5 additions, 11 deletions
Library/Homebrew/brew.h.rb
with
5 additions
and
11 deletions
Library/Homebrew/brew.h.rb
+
5
−
11
View file @
3762bbf5
...
...
@@ -47,9 +47,6 @@ Mercurial can be install thusly:
end
end
DEFAULT_USER
=
'mxcl'
DEFAULT_BRANCH
=
'master'
def
__make
url
,
name
require
'formula'
...
...
@@ -167,20 +164,16 @@ def github_info name
branch
=
(
$1
||
''
).
chomp
end
user
=
DEFAULT_USER
if
user
.
empty?
branch
=
DEFAULT_BRANCH
if
user
.
empty?
user
=
'mxcl'
if
user
.
empty?
branch
=
'master'
if
user
.
empty?
history
=
"http://github.com/
#{
user
}
/homebrew/commits/
#{
branch
}
/Library/Formula/
#{
formula_name
}
"
exec
'open'
,
history
return
"http://github.com/
#{
user
}
/homebrew/commits/
#{
branch
}
/Library/Formula/
#{
formula_name
}
"
end
def
info
name
require
'formula'
if
ARGV
.
flag?
'--github'
github_info
name
return
end
exec
'open'
,
github_info
(
name
)
if
ARGV
.
flag?
'--github'
f
=
Formula
.
factory
name
puts
"
#{
f
.
name
}
#{
f
.
version
}
"
...
...
@@ -205,6 +198,7 @@ def info name
puts
end
history
=
github_info
puts
history
if
history
rescue
FormulaUnavailableError
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment