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
51fcfc73
Commit
51fcfc73
authored
Jul 28, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds `raw_size` to take advantage of LFS
parent
799c8edf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
app/assets/javascripts/repo/repo_commit_section.vue
app/assets/javascripts/repo/repo_commit_section.vue
+1
-5
app/controllers/concerns/renders_blob.rb
app/controllers/concerns/renders_blob.rb
+1
-1
No files found.
app/assets/javascripts/repo/repo_commit_section.vue
View file @
51fcfc73
...
...
@@ -24,10 +24,6 @@ const RepoCommitSection = {
// see https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
const
branch
=
Helper
.
getBranch
();
const
commitMessage
=
this
.
commitMessage
;
this
.
changedFiles
.
map
((
f
)
=>
{
console
.
log
(
'
fffff
'
,
f
.
newContent
)
});
return
;
const
actions
=
this
.
changedFiles
.
map
((
f
)
=>
{
const
filePath
=
Helper
.
getFilePathFromFullPath
(
f
.
url
,
branch
);
return
{
...
...
@@ -37,7 +33,7 @@ const RepoCommitSection = {
};
});
const
payload
=
{
branch
,
branch
:
Store
.
targetBranch
,
commit_message
:
commitMessage
,
actions
,
};
...
...
app/controllers/concerns/renders_blob.rb
View file @
51fcfc73
...
...
@@ -20,7 +20,7 @@ module RendersBlob
mime_type:
blob
.
mime_type
,
name:
blob
.
name
,
extension:
blob
.
extension
,
size:
blob
.
size
size:
blob
.
raw_
size
}
else
render
json:
{
...
...
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