Skip to content

Commit 79f6eed

Browse files
committed
feature: supports git repo with reftable format
Signed-off-by: leo <longshuang@msn.cn>
1 parent 958097e commit 79f6eed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Models/Watcher.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,13 @@ private void HandleGitDirFileChanged(string name)
302302
{
303303
Interlocked.Exchange(ref _updateBranch, DateTime.Now.AddSeconds(.5).ToFileTime());
304304
}
305+
else if (name.StartsWith("reftable/", StringComparison.Ordinal))
306+
{
307+
var desired = DateTime.Now.AddSeconds(.5).ToFileTime();
308+
Interlocked.Exchange(ref _updateBranch, desired);
309+
Interlocked.Exchange(ref _updateTags, desired);
310+
Interlocked.Exchange(ref _updateStashes, desired);
311+
}
305312
else if (name.StartsWith("objects/", StringComparison.Ordinal) || name.Equals("index", StringComparison.Ordinal))
306313
{
307314
Interlocked.Exchange(ref _updateWC, DateTime.Now.AddSeconds(1).ToFileTime());

0 commit comments

Comments
 (0)