Пример #1
0
        //Unstage a list of paths
        public static void UnstagePaths(List <string> paths, Action <CommandOutput> onComplete)
        {
            string combinedPaths = GitUtility.QuoteAndCombinePaths(paths.ToArray());

            GitGud.RunCommand("reset -- " + combinedPaths, onComplete);
        }
Пример #2
0
        public static void DiscardFiles(List <string> paths, Action <CommandOutput> onComplete)
        {
            string combinedPaths = GitUtility.QuoteAndCombinePaths(paths.ToArray());

            GitGud.RunCommand("checkout " + combinedPaths, onComplete);
        }