diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java index 89f59150a..e04a587ac 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java @@ -167,7 +167,16 @@ public static enum Result { private final Ref ref; - RefUpdate(final Ref ref) { + /** + * Construct a new update operation for the reference. + *

+ * {@code ref.getObjectId()} will be used to seed {@link #getOldObjectId()}, + * which callers can use as part of their own update logic. + * + * @param ref + * the reference that will be updated by this operation. + */ + protected RefUpdate(final Ref ref) { this.ref = ref; oldValue = ref.getObjectId(); refLogMessage = "";