internal static int Compare(TreeEntry t, GitIndex.Entry i) { if (t == null && i == null) { return 0; } if (t == null) { return 1; } if (i == null) { return -1; } return Tree.CompareNames(t.GetFullNameUTF8(), i.GetNameUTF8(), TreeEntry.LastChar (t), TreeEntry.LastChar(i)); }