Skip to content

Commit

Permalink
Add check-ignore as command allows placeholders to be created
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Willford committed Oct 9, 2018
1 parent 7cd6375 commit c44e72e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions GVFS/GVFS.Common/GitCommandLineParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public enum Verbs
Reset = 1 << 5,
Status = 1 << 6,
UpdateIndex = 1 << 7,
CheckIgnore = 1 << 8,
}

public bool IsValidGitCommand
Expand Down Expand Up @@ -123,6 +124,7 @@ private Verbs StringToVerbs(string verb)
case "stage": return Verbs.AddOrStage;
case "status": return Verbs.Status;
case "update-index": return Verbs.UpdateIndex;
case "check-ignore": return Verbs.CheckIgnore;
default: return Verbs.Other;
}
}
Expand Down
5 changes: 4 additions & 1 deletion GVFS/GVFS.Virtualization/FileSystem/FileSystemVirtualizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ public abstract class FileSystemVirtualizer : IDisposable
protected static readonly byte[] FolderContentId = Encoding.Unicode.GetBytes(GVFSConstants.AllZeroSha);

protected static readonly GitCommandLineParser.Verbs CanCreatePlaceholderVerbs =
GitCommandLineParser.Verbs.AddOrStage | GitCommandLineParser.Verbs.Move | GitCommandLineParser.Verbs.Status;
GitCommandLineParser.Verbs.AddOrStage |
GitCommandLineParser.Verbs.Move |
GitCommandLineParser.Verbs.Status |
GitCommandLineParser.Verbs.CheckIgnore;

private BlockingCollection<FileOrNetworkRequest> fileAndNetworkRequests;
private Thread[] fileAndNetworkWorkerThreads;
Expand Down

0 comments on commit c44e72e

Please sign in to comment.