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
7176870e
Unverified
Commit
7176870e
authored
4 years ago
by
Mike McQuaid
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #10249 from hyuraku/cmd/info_refactor-github_info
cmd/info: refactor-github_info
parents
50ffa382
d2c0fdfb
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/cmd/info.rb
+7
-13
7 additions, 13 deletions
Library/Homebrew/cmd/info.rb
with
7 additions
and
13 deletions
Library/Homebrew/cmd/info.rb
+
7
−
13
View file @
7176870e
...
...
@@ -215,20 +215,14 @@ module Homebrew
end
def
github_info
(
f
)
if
f
.
tap
if
remote
=
f
.
tap
.
remote
path
=
if
f
.
class
.
superclass
==
Formula
f
.
path
.
relative_path_from
(
f
.
tap
.
path
)
elsif
f
.
is_a?
(
Cask
::
Cask
)
f
.
sourcefile_path
.
relative_path_from
(
f
.
tap
.
path
)
end
github_remote_path
(
remote
,
path
)
else
f
.
path
end
else
f
.
path
return
f
.
path
if
f
.
tap
.
blank?
||
f
.
tap
.
remote
.
blank?
path
=
if
f
.
class
.
superclass
==
Formula
f
.
path
.
relative_path_from
(
f
.
tap
.
path
)
elsif
f
.
is_a?
(
Cask
::
Cask
)
f
.
sourcefile_path
.
relative_path_from
(
f
.
tap
.
path
)
end
github_remote_path
(
f
.
tap
.
remote
,
path
)
end
def
info_formula
(
f
,
args
:)
...
...
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