GitCommands.GitCommands.GetAllChangedFilesCmd C# (CSharp) Method

GetAllChangedFilesCmd() public static method

public static GetAllChangedFilesCmd ( bool excludeIgnoredFiles, bool showUntrackedFiles ) : string
excludeIgnoredFiles bool
showUntrackedFiles bool
return string
        public static string GetAllChangedFilesCmd(bool excludeIgnoredFiles, bool showUntrackedFiles)
        {
            var stringBuilder = new StringBuilder("ls-files -z --deleted --modified --no-empty-directory -t");

            if (showUntrackedFiles)
                stringBuilder.Append(" --others");
            if (excludeIgnoredFiles)
                stringBuilder.Append(" --exclude-standard");

            return stringBuilder.ToString();
        }
GitCommands