public override string ToString() { return("RemoteRefUpdate[remoteName=" + RemoteName + ", " + Status + ", " + (ExpectedOldObjectId != null ? ExpectedOldObjectId.Abbreviate(_localDb).name() : "(null)") + "..." + (NewObjectId != null ? NewObjectId.Abbreviate(_localDb).name() : "(null)") + (FastForward ? ", fastForward" : string.Empty) + ", srcRef=" + SourceRef + (ForceUpdate ? ", forceUpdate" : string.Empty) + ", message=" + (Message != null ? "\"" + Message + "\"" : "null") + ", " + _localDb.Directory + "]"); }
public override string ToString(BotElement bot, Func <string, string> transform) { return(String.Format("{0} {1} {2} {3}", transform(String.Concat(RefNames)), bot.Text.RefPointer, transform(ObjectType.ToString()), transform(NewObjectId.ToHexString()))); }
public override string ToString(BotElement bot, TextElement text, Func <string, string> transform) { return(String.Format("{0} {1} {2} {3}", Refs.ToString(text, transform), text.RefPointer, transform(ObjectType.ToString()), transform(NewObjectId.ToHexString()))); }