Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public static void DiscardFiles(List <string> paths, Action <CommandOutput> onComplete)
        {
            string combinedPaths = GitUtility.QuoteAndCombinePaths(paths.ToArray());

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