private static string Path(DiffEntry difference) { switch (difference.GetChangeType()) { case DiffEntry.ChangeType.ADD: return(difference.GetNewPath()); case DiffEntry.ChangeType.COPY: return(string.Format("{0} -> {1}", difference.GetOldPath(), difference.GetNewPath())); case DiffEntry.ChangeType.DELETE: return(difference.GetOldPath()); case DiffEntry.ChangeType.MODIFY: return(difference.GetOldPath()); case DiffEntry.ChangeType.RENAME: return(string.Format("{0} -> {1}", difference.GetOldPath(), difference.GetNewPath())); default: return(difference.ToString()); } }