diff --git a/src/de/uni_passau/fim/seibt/gitwrapper/repo/Commit.java b/src/de/uni_passau/fim/seibt/gitwrapper/repo/Commit.java
index 7c2ef1fe90400682e5e3b60003cb68099075a28e..6848dd020ec7d8dbcc0c2d6d3de3f9faca674337 100644
--- a/src/de/uni_passau/fim/seibt/gitwrapper/repo/Commit.java
+++ b/src/de/uni_passau/fim/seibt/gitwrapper/repo/Commit.java
@@ -43,6 +43,19 @@ public class Commit extends Reference {
         super(repo, id);
     }
 
+    /**
+     * Checks if the given {@link Commit} is an ancestor of this commit.
+     *
+     * @param ancestor
+     *         the {@link Commit} to check
+     * @return optionally <code>true</code>, if the given commit is in the history before this commit,
+     * <code>false</code>, if not and an {@link Optional#EMPTY empty optional}, if an error occurred.
+     */
+    public Optional<Boolean> checkAncestry(Commit ancestor) {
+        return git.exec(repo.getDir(), " merge-base", "--is-ancestor", ancestor.getId(), id).map(execRes ->
+                execRes.exitCode == 0 ? Boolean.TRUE : execRes.exitCode == 1 ? Boolean.FALSE : null);
+    }
+
     /**
      * Returns the author of this commit.
      *
@@ -246,17 +259,4 @@ public class Commit extends Reference {
             }
         });
     }
-
-    /**
-     * Checks if the given {@link Commit} is an ancestor of this commit.
-     *
-     * @param ancestor
-     *         the {@link Commit} to check
-     * @return optionally <code>true</code>, if the given commit is in the history before this commit,
-     * <code>false</code>, if not and an {@link Optional#EMPTY empty optional}, if an error occurred.
-     */
-    public Optional<Boolean> checkAncestry(Commit ancestor) {
-        return git.exec(repo.getDir(), " merge-base", "--is-ancestor", ancestor.getId(), id).map(execRes ->
-                execRes.exitCode == 0 ? Boolean.TRUE : execRes.exitCode == 1 ? Boolean.FALSE : null);
-    }
 }