示例#1
0
        public GitItem(IGitStatusCache context, string fullPath, NoSccStatus status, SvnNodeKind nodeKind)
            : base(fullPath)
        {
            _context = context;

            RefreshTo(status, nodeKind);
        }
示例#2
0
        public GitItem(IGitStatusCache context, string fullPath, GitStatusData status)
            : base(fullPath)
        {
            _context = context;
            _status = status;

            _enqueued = true;
            RefreshTo(status);
            _enqueued = false;
        }
示例#3
0
        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;
            }
        }