Is it possible to detect merge conflicts between two git diff without having access to the repository anymore ?
For instance:
$repo: git diff HEAD > ~/diff1
... do work, move branches etc
$repo: git diff HEAD > ~/diff2
$somewhereElse: git merge-diff ~/diff1 ~/diff2 ??
Edit: Here's an example of two diff that conflict, which we can tell with no knowledge of the repo
diff --git a/schema.graphql b/schema.graphql
index 346rb8i42tg..3f0deee83ad 100644
--- a/schema.graphql
+++ b/schema.graphql
@@ -12,7 +12,6 @@ interface Thing {
interface Being {
name: String!
- possessions: [Thing!]!
lifeExpectancy: Float
friends: [Being!]!
optionalFriends: [Character]
diff --git a/schema.graphql b/schema.graphql
index 297fb5e764e..de9fbc233ac 100644
--- a/schema.graphql
+++ b/schema.graphql
@@ -14,6 +14,7 @@ interface Being {
name: String!
possessions: [Thing!]!
lifeExpectancy: Float
+ surname: String
friends: [Being!]!
optionalFriends: [Character]
isRebel: Boolean!