Skip to content

Commit dbf8cd3

Browse files
authored
Merge pull request #809 from raymond-rebbeck/reset-revert-sync
Sync files with IRIS after performing a 'Hard Reset' or 'Revert' via WebUI
2 parents 0c9c250 + 8052a8f commit dbf8cd3

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111
- Fix Import All not importing items that do not already exist when compileOnImport is not set (#798)
1212
- Import All now imports configuration file before everything else (#806)
13+
- Fix Revert not syncing files with IRIS (#789)
1314

1415
## [2.12.2] - 2025-07-08
1516

cls/SourceControl/Git/Utils.cls

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,25 @@ 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+
}
2014+
} elseif (args(i) = "revert") {
2015+
// Sync files after performing a 'Revert' via the WebUI
2016+
if (args(i + 1) = "--no-commit") {
2017+
set syncIrisWithDiff = 1
2018+
set syncIrisWithDiffAfterGit = 1
2019+
set syncIrisWithDiffVerbose = 1
2020+
// When syncing diff against what is being reverted
2021+
set diffBase = args(i + 2)
2022+
}
20042023
}
20052024
}
20062025
}

0 commit comments

Comments
 (0)