public StatusListEntry(string localPath, FileStatus state, MetaChangeEnum metaChange, StatusEntryFlags flags) { this.localPath = localPath; this.name = Path.GetFileName(localPath); this.state = state; this.metaChange = metaChange; this.flags = flags; }
private StatusEntryFlags CalculateFlags(GitStatusEntry entry) { StatusEntryFlags flags = 0; if (lfsHelper.IsLfsPath(entry.LocalPath)) { flags |= StatusEntryFlags.IsLfs; } if (gitManager.IsSubModule(entry.LocalPath)) { flags |= StatusEntryFlags.IsSubModule; } return(flags); }