Skip to content

Commit

Permalink
Separate RefFilterOptions to own file
Browse files Browse the repository at this point in the history
  • Loading branch information
gerhardol committed Aug 31, 2022
1 parent caaccf5 commit 302c2e2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
23 changes: 23 additions & 0 deletions GitCommands/RevisionReader.RefFilterOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;

namespace GitCommands
{
#pragma warning disable SA1025 // Code should not contain multiple whitespace in a row
[Flags]
public enum RefFilterOptions
{
None = 0x000,
Branches = 0x001, // --branches
Remotes = 0x002, // --remotes
Tags = 0x004, // --tags
Stashes = 0x008, //
All = 0x00F, // --all
Boundary = 0x010, // --boundary
ShowGitNotes = 0x020, // --not --glob=notes --not
NoMerges = 0x040, // --no-merges
FirstParent = 0x080, // --first-parent
SimplifyByDecoration = 0x100, // --simplify-by-decoration
Reflogs = 0x200, // --reflog
}
#pragma warning restore SA1025 // Code should not contain multiple whitespace in a row
}
19 changes: 0 additions & 19 deletions GitCommands/RevisionReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,6 @@

namespace GitCommands
{
#pragma warning disable SA1025 // Code should not contain multiple whitespace in a row
[Flags]
public enum RefFilterOptions
{
None = 0x000,
Branches = 0x001, // --branches
Remotes = 0x002, // --remotes
Tags = 0x004, // --tags
Stashes = 0x008, //
All = 0x00F, // --all
Boundary = 0x010, // --boundary
ShowGitNotes = 0x020, // --not --glob=notes --not
NoMerges = 0x040, // --no-merges
FirstParent = 0x080, // --first-parent
SimplifyByDecoration = 0x100, // --simplify-by-decoration
Reflogs = 0x200, // --reflog
}
#pragma warning restore SA1025 // Code should not contain multiple whitespace in a row

public sealed class RevisionReader
{
private const string FullFormat =
Expand Down

0 comments on commit 302c2e2

Please sign in to comment.