GitCommands.GitCommands.GetDiff C# (CSharp) Method

GetDiff() public static method

public static GetDiff ( string from, string to, string extraDiffArguments ) : List
from string
to string
extraDiffArguments string
return List
        public static List<Patch> GetDiff(string from, string to, string extraDiffArguments)
        {
            var patchManager = new PatchManager();
            var arguments = string.Format("diff{0} \"{1}\" \"{2}\"", extraDiffArguments, from, to);
            patchManager.LoadPatch(RunCachableCmd(Settings.GitCommand, arguments), false);

            return patchManager.patches;
        }
GitCommands