diff options
author | Keith Dahlby <dahlbyk@gmail.com> | 2012-03-06 03:48:52 +0400 |
---|---|---|
committer | Keith Dahlby <dahlbyk@gmail.com> | 2012-03-06 03:48:52 +0400 |
commit | 842e30fcf6922431252f71ddf53504384917ac91 (patch) | |
tree | 865900509eb46b3c629bbc51fcca6f848c183552 /LibGit2Sharp | |
parent | e32f933298a8086f4cdbb5c2d70a0c199bf67ff1 (diff) |
Add RepositoryStatus.Ignored
Closes #120
Diffstat (limited to 'LibGit2Sharp')
-rw-r--r-- | LibGit2Sharp/RepositoryStatus.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/LibGit2Sharp/RepositoryStatus.cs b/LibGit2Sharp/RepositoryStatus.cs index c8e55ba2..60806d6a 100644 --- a/LibGit2Sharp/RepositoryStatus.cs +++ b/LibGit2Sharp/RepositoryStatus.cs @@ -18,6 +18,7 @@ namespace LibGit2Sharp private readonly List<string> missing = new List<string>(); private readonly List<string> modified = new List<string>(); private readonly List<string> untracked = new List<string>(); + private readonly List<string> ignored = new List<string>(); private readonly bool isDirty; private readonly IDictionary<FileStatus, Action<RepositoryStatus, string>> dispatcher = Build(); @@ -32,6 +33,7 @@ namespace LibGit2Sharp { FileStatus.Added, (rs, s) => rs.added.Add(s) }, { FileStatus.Staged, (rs, s) => rs.staged.Add(s) }, { FileStatus.Removed, (rs, s) => rs.removed.Add(s) }, + { FileStatus.Ignored, (rs, s) => rs.ignored.Add(s) }, }; } @@ -128,6 +130,14 @@ namespace LibGit2Sharp } /// <summary> + /// List of files existing in the working directory that are ignored. + /// </summary> + public IEnumerable<string> Ignored + { + get { return ignored; } + } + + /// <summary> /// True if the index or the working directory has been altered since the last commit. False otherwise. /// </summary> public bool IsDirty |