public GitItem(IGitStatusCache context, string fullPath, NoSccStatus status, SvnNodeKind nodeKind) : base(fullPath) { _context = context; RefreshTo(status, nodeKind); }
public GitItem(IGitStatusCache context, string fullPath, GitStatusData status) : base(fullPath) { _context = context; _status = status; _enqueued = true; RefreshTo(status); _enqueued = false; }
void RefreshStatus() { _statusDirty = XBool.None; IGitStatusCache statusCache = StatusCache; try { statusCache.RefreshItem(this, IsFile ? SvnNodeKind.File : SvnNodeKind.Directory); // We can check this less expensive than the statuscache! } finally { Debug.Assert(_statusDirty == XBool.False, "No longer dirty after refresh", string.Format("Path = {0}", FullPath)); _statusDirty = XBool.False; } }