Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
682ec038
Commit
682ec038
authored
Apr 25, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename `CommitRange#sha_from_as_param` to `#suffixed_sha_from`
parent
165cacce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/models/commit_range.rb
app/models/commit_range.rb
+4
-4
No files found.
app/models/commit_range.rb
View file @
682ec038
...
...
@@ -61,14 +61,14 @@ class CommitRange
# Returns a String for use in a link's title attribute
def
reference_title
"Commits
#{
s
ha_from_as_para
m
}
through
#{
sha_to
}
"
"Commits
#{
s
uffixed_sha_fro
m
}
through
#{
sha_to
}
"
end
# Return a Hash of parameters for passing to a URL helper
#
# See `namespace_project_compare_url`
def
to_param
{
from:
s
ha_from_as_para
m
,
to:
sha_to
}
{
from:
s
uffixed_sha_fro
m
,
to:
sha_to
}
end
def
exclude_start?
...
...
@@ -91,7 +91,7 @@ class CommitRange
end
def
commit_from
@commit_from
||=
project
.
repository
.
commit
(
s
ha_from_as_para
m
)
@commit_from
||=
project
.
repository
.
commit
(
s
uffixed_sha_fro
m
)
end
def
commit_to
...
...
@@ -100,7 +100,7 @@ class CommitRange
private
def
s
ha_from_as_para
m
def
s
uffixed_sha_fro
m
sha_from
+
(
exclude_start?
?
'^'
:
''
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment