Skip to content

Commit 20117a3

Browse files
committed
refactor: re-write the way to manually update repository immediately (#1720)
Signed-off-by: leo <[email protected]>
1 parent 898528f commit 20117a3

File tree

2 files changed

+120
-155
lines changed

2 files changed

+120
-155
lines changed

src/Models/Watcher.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ public void SetSubmodules(List<Submodule> submodules)
8282
}
8383
}
8484

85-
public void MarkBranchDirtyManually()
85+
public void MarkBranchUpdated()
8686
{
87-
_updateBranch = DateTime.Now.ToFileTime() - 1;
87+
_updateBranch = 0;
8888
}
8989

90-
public void MarkTagDirtyManually()
90+
public void MarkTagUpdated()
9191
{
92-
_updateTags = DateTime.Now.ToFileTime() - 1;
92+
_updateTags = 0;
9393
}
9494

95-
public void MarkWorkingCopyDirtyManually()
95+
public void MarkWorkingCopyUpdated()
9696
{
97-
_updateWC = DateTime.Now.ToFileTime() - 1;
97+
_updateWC = 0;
9898
}
9999

100100
public void Dispose()

0 commit comments

Comments
 (0)