private static Patch GetItemPatch(
            [NotNull] VsrModule module,
            [NotNull] GitItemStatus file,
            [CanBeNull] ObjectId firstId,
            [CanBeNull] ObjectId secondId,
            [NotNull] string diffArgs,
            [NotNull] Encoding encoding)
        {
            // Files with tree guid should be presented with normal diff
            var isTracked = file.IsTracked || (file.TreeGuid != null && secondId != null);

            return(module.GetSingleDiff(firstId, secondId, file.Name, file.OldName, diffArgs, encoding, true, isTracked));
        }