mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 13:20:30 +08:00
feature: supports git repo with reftable format
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -302,6 +302,13 @@ namespace SourceGit.Models
|
||||
{
|
||||
Interlocked.Exchange(ref _updateBranch, DateTime.Now.AddSeconds(.5).ToFileTime());
|
||||
}
|
||||
else if (name.StartsWith("reftable/", StringComparison.Ordinal))
|
||||
{
|
||||
var desired = DateTime.Now.AddSeconds(.5).ToFileTime();
|
||||
Interlocked.Exchange(ref _updateBranch, desired);
|
||||
Interlocked.Exchange(ref _updateTags, desired);
|
||||
Interlocked.Exchange(ref _updateStashes, desired);
|
||||
}
|
||||
else if (name.StartsWith("objects/", StringComparison.Ordinal) || name.Equals("index", StringComparison.Ordinal))
|
||||
{
|
||||
Interlocked.Exchange(ref _updateWC, DateTime.Now.AddSeconds(1).ToFileTime());
|
||||
|
||||
Reference in New Issue
Block a user