Skip to content

Commit c22e353

Browse files
Sync files with IRIS after performing a 'Hard Reset' via the WebUI
1 parent 0c9c250 commit c22e353

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cls/SourceControl/Git/Utils.cls

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,16 @@ ClassMethod RunGitCommandWithInput(command As %String, inFile As %String = "", O
20012001
set diffCompare = args(i + 1)
20022002
} elseif (args(i) = "commit") {
20032003
set isCommit = 1
2004+
} elseif (args(i) = "reset") {
2005+
// Sync files after performing a 'Hard Reset' via the WebUI
2006+
if (args(i + 1) = "--hard") {
2007+
set syncIrisWithDiff = 1
2008+
set syncIrisWithDiffAfterGit = 1
2009+
set syncIrisWithDiffVerbose = 1
2010+
// The current commit will still be able to be referenced to diff against
2011+
// despite the fact that it will disappear after the reset is performed
2012+
set diffBase = ..GetCurrentRevision()
2013+
}
20042014
}
20052015
}
20062016
}

0 commit comments

Comments
 (0)