Merge "Add toString for TrackingRefUpdate"
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TrackingRefUpdate.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TrackingRefUpdate.java
index 3344c3f..d6dcb32 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TrackingRefUpdate.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TrackingRefUpdate.java
@@ -193,4 +193,21 @@ private RefUpdate.Result decode(ReceiveCommand.Result status) {
 			}
 		}
 	}
+
+	@Override
+	public String toString() {
+		StringBuilder sb = new StringBuilder();
+		sb.append("TrackingRefUpdate[");
+		sb.append(remoteName);
+		sb.append(" -> ");
+		sb.append(localName);
+		if (forceUpdate)
+			sb.append(" (forced)");
+		sb.append(" ");
+		sb.append(oldObjectId == null ? "" : oldObjectId.abbreviate(7).name());
+		sb.append("..");
+		sb.append(newObjectId == null ? "" : newObjectId.abbreviate(7).name());
+		sb.append("]");
+		return sb.toString();
+	}
 }