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
Tatuya Kamada
gitlab-ce
Commits
37f3d0f2
Commit
37f3d0f2
authored
May 02, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix newlines in how-to-merge. Added steps description. Fixes #3772
parent
2aa620c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
14 deletions
+16
-14
app/assets/javascripts/merge_requests.js.coffee
app/assets/javascripts/merge_requests.js.coffee
+7
-0
app/views/merge_requests/show/_how_to_merge.html.haml
app/views/merge_requests/show/_how_to_merge.html.haml
+9
-14
No files found.
app/assets/javascripts/merge_requests.js.coffee
View file @
37f3d0f2
...
@@ -21,6 +21,13 @@ class MergeRequest
...
@@ -21,6 +21,13 @@ class MergeRequest
this
.
initMergeWidget
()
this
.
initMergeWidget
()
this
.
$
(
'.show-all-commits'
).
on
'click'
,
=>
this
.
$
(
'.show-all-commits'
).
on
'click'
,
=>
this
.
showAllCommits
()
this
.
showAllCommits
()
modal
=
$
(
'#modal_merge_info'
).
modal
modal
:
true
,
show
:
false
$
(
'.how_to_merge_link'
).
bind
"click"
,
->
modal
.
show
()
$
(
'.modal-header .close'
).
bind
"click"
,
->
modal
.
hide
()
# Local jQuery finder
# Local jQuery finder
$
:
(
selector
)
->
$
:
(
selector
)
->
...
...
app/views/merge_requests/show/_how_to_merge.html.haml
View file @
37f3d0f2
...
@@ -3,22 +3,17 @@
...
@@ -3,22 +3,17 @@
%a
.close
{
href:
"#"
}
×
%a
.close
{
href:
"#"
}
×
%h3
How To Merge
%h3
How To Merge
.modal-body
.modal-body
%p
%strong
Step 1.
Checkout target branch and get recent objects from GitLab
%pre
.dark
%pre
.dark
=
preserve
do
:preserve
git checkout
#{
@merge_request
.
target_branch
}
git checkout
#{
@merge_request
.
target_branch
}
git fetch origin
git fetch origin
%p
%strong
Step 2.
Merge source branch into target branch and push changes to GitLab
%pre
.dark
:preserve
git merge origin/
#{
@merge_request
.
source_branch
}
git merge origin/
#{
@merge_request
.
source_branch
}
git push origin
#{
@merge_request
.
target_branch
}
git push origin
#{
@merge_request
.
target_branch
}
:javascript
$
(
function
(){
var
modal
=
$
(
'
#modal_merge_info
'
).
modal
({
modal
:
true
,
show
:
false
});
$
(
'
.how_to_merge_link
'
).
bind
(
"
click
"
,
function
(){
modal
.
show
();
});
$
(
'
.modal-header .close
'
).
bind
(
"
click
"
,
function
(){
modal
.
hide
();
})
})
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