Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitWrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Georg Seibt
GitWrapper
Commits
ef56db95
Commit
ef56db95
authored
7 years ago
by
Florian Heck
Browse files
Options
Downloads
Patches
Plain Diff
report failed merge with default strategy as such
parent
965ec5fa
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
src/de/uni_passau/fim/seibt/gitwrapper/repo/DefaultMergeStrategy.java
+4
-0
4 additions, 0 deletions
...assau/fim/seibt/gitwrapper/repo/DefaultMergeStrategy.java
with
4 additions
and
0 deletions
src/de/uni_passau/fim/seibt/gitwrapper/repo/DefaultMergeStrategy.java
+
4
−
0
View file @
ef56db95
...
...
@@ -23,6 +23,10 @@ public class DefaultMergeStrategy implements MergeStrategy {
@Override
public
Optional
<
Status
>
merge
(
Reference
left
,
Reference
right
)
{
Optional
<
ProcessExecutor
.
ExecRes
>
mergeBase
=
repo
.
getGit
().
exec
(
repo
.
getDir
(),
"merge"
,
"-n"
,
"-q"
,
right
.
getId
());
if
(
mergeBase
.
isPresent
()
&&
mergeBase
.
get
().
failed
())
{
// merge failed, and we don't want to know the state of the repo at the parent
return
Optional
.
empty
();
}
return
mergeBase
.
flatMap
(
res
->
repo
.
getStatus
());
}
...
...
This diff is collapsed.
Click to expand it.
Florian Heck
@heckflor
mentioned in merge request
!1 (merged)
·
6 years ago
mentioned in merge request
!1 (merged)
mentioned in merge request !1
Toggle commit list
Georg Seibt
@seibt
mentioned in commit
9d7e9c95
·
6 years ago
mentioned in commit
9d7e9c95
mentioned in commit 9d7e9c9544175093b8bec9549f7f7c0386426f01
Toggle commit list
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