コード例 #1
0
ファイル: GitCore.cs プロジェクト: hellomercury/gitgud
        //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
ファイル: GitCore.cs プロジェクト: hellomercury/gitgud
        public static void DiscardFiles(List <string> paths, Action <CommandOutput> onComplete)
        {
            string combinedPaths = GitUtility.QuoteAndCombinePaths(paths.ToArray());

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