libgit2/libgit2sharp — pull request #311 by dahlbyk (2013-02-03 18:49:29+00:00)
Title: Check all [Flags] enums for overlaps

Rules for `FileStatus` should really apply for any enum with `[Flags]`.

Result if I add bad values:
```
Test 'LibGit2Sharp.Tests.MetaFixture.EnumsWithFlagsHaveMutuallyExclusiveValues' failed: Assert.Equal() Failure
Position: First difference is at position 0
Expected:
Actual: SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.InHead
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.InIndex
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.InConfig
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.InWorkDir
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.IndexAdded
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.IndexDeleted
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.IndexModified
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.WorkDirUninitialized
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.WorkDirAdded
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.WorkDirDeleted
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.WorkDirModified
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.WorkDirFilesIndexDirty
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.WorkDirFilesModified
SubmoduleStatus.Nonexistent overlaps with SubmoduleStatus.WorkDirFilesUntracked
FileStatus.Nonexistent overlaps with FileStatus.Added
FileStatus.Nonexistent overlaps with FileStatus.Staged
FileStatus.Nonexistent overlaps with FileStatus.Removed
FileStatus.Nonexistent overlaps with FileStatus.Renamed
FileStatus.Nonexistent overlaps with FileStatus.StagedTypeChange
FileStatus.Nonexistent overlaps with FileStatus.Untracked
FileStatus.Nonexistent overlaps with FileStatus.Modified
FileStatus.Nonexistent overlaps with FileStatus.Missing
FileStatus.Nonexistent overlaps with FileStatus.TypeChanged
FileStatus.Nonexistent overlaps with FileStatus.Ignored
MetaFixture.cs(113,0): at LibGit2Sharp.Tests.MetaFixture.EnumsWithFlagsHaveMutuallyExclusiveValues()

```