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
b0a22783
Commit
b0a22783
authored
8 years ago
by
Florian Heck
Browse files
Options
Downloads
Patches
Plain Diff
restored behavior of merge prior to
6219ae01
parent
194ed866
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/Reference.java
+3
-12
3 additions, 12 deletions
src/de/uni_passau/fim/seibt/gitwrapper/repo/Reference.java
with
3 additions
and
12 deletions
src/de/uni_passau/fim/seibt/gitwrapper/repo/Reference.java
+
3
−
12
View file @
b0a22783
package
de.uni_passau.fim.seibt.gitwrapper.repo
;
import
de.uni_passau.fim.seibt.gitwrapper.process.ProcessExecutor.ExecRes
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Objects
;
...
...
@@ -8,8 +10,6 @@ import java.util.function.Function;
import
java.util.logging.Logger
;
import
java.util.stream.Collectors
;
import
de.uni_passau.fim.seibt.gitwrapper.process.ProcessExecutor.ExecRes
;
public
abstract
class
Reference
{
private
static
final
Logger
LOG
=
Logger
.
getLogger
(
Reference
.
class
.
getCanonicalName
());
...
...
@@ -76,16 +76,7 @@ public abstract class Reference {
}
Optional
<
ExecRes
>
mergeBase
=
git
.
exec
(
repo
.
getDir
(),
"merge"
,
"-n"
,
"-q"
,
other
.
getId
());
Function
<
ExecRes
,
Optional
<
Status
>>
toStatus
=
res
->
{
if
(
git
.
failed
(
res
))
{
LOG
.
warning
(()
->
String
.
format
(
"Could not execute the merge between %s and %s."
,
this
,
other
));
return
Optional
.
empty
();
}
return
repo
.
getStatus
();
};
return
mergeBase
.
flatMap
(
toStatus
);
return
mergeBase
.
flatMap
(
res
->
repo
.
getStatus
());
}
...
...
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