Skip to content

Commit 6f4c805

Browse files
committed
Safeguard-discard on menu-based discard
1 parent 8c49654 commit 6f4c805

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ ClassMethod Init() As %Status
334334
ClassMethod Revert(InternalName As %String) As %Status
335335
{
336336
set filename = ..FullExternalName(.InternalName)
337+
do ##class(SourceControl.Git.DiscardState).SaveDiscardState(InternalName)
337338
do ..RunGitCommand("checkout", .errStream, .outStream, "--", filename)
338339
$$$QuitOnError(##class(SourceControl.Git.Change).RemoveUncommitted(filename,0,1))
339340
$$$QuitOnError(##class(SourceControl.Git.Change).RefreshUncommitted(0,1,,1))

0 commit comments

Comments
 (0)