Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.15.0] - Unreleased

### Added
- Import All has been added to public-facing API (#891)

## [2.14.0] - 2025-11-07

### Added
Expand Down
7 changes: 7 additions & 0 deletions cls/SourceControl/Git/API.cls
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ ClassMethod Pull(pTerminateOnError As %Boolean = 0)
quit st
}

/// Imports all items from the Git repository into IRIS.
/// - pForce: if true, will import an item even if the last updated timestamp in IRIS is later than that of the file on disk.
ClassMethod ImportAll(pForce As %Boolean = 0) as %Status
{
return ##class(SourceControl.Git.Utils).ImportAll(pForce)
}

/// Locks the environment to prevent changes to code other than through git pull.
/// Returns 1 if the environment was already locked, 0 if it was previously unlocked.
ClassMethod Lock()
Expand Down
2 changes: 1 addition & 1 deletion module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Document name="git-source-control.ZPM">
<Module>
<Name>git-source-control</Name>
<Version>2.14.0</Version>
<Version>2.15.0</Version>
<Description>Server-side source control extension for use of Git on InterSystems platforms</Description>
<Keywords>git source control studio vscode</Keywords>
<Packaging>module</Packaging>
Expand Down
2 changes: 1 addition & 1 deletion test/UnitTest/SourceControl/Git/ImportAll.cls
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Method TestImportAll()
do ..WriteFile(##class(SourceControl.Git.Settings).%New().namespaceTemp_"csp/git/unittest/xsl/test.xsl", "<?xml version=""1.0"" encoding=""UTF-8""?> <xsl:stylesheet version=""1.0""></xsl:stylesheet>")
$$$ThrowOnError(##class(%Routine).Delete("test.mac"))
do ##class(%RoutineMgr).Delete("/csp/git/unittest/xsl/test.xsl")
$$$ThrowOnError(##class(SourceControl.Git.Utils).ImportAll(1))
$$$ThrowOnError(##class(SourceControl.Git.API).ImportAll(1))
do $$$AssertTrue(##class(%Routine).Exists("test.mac"))
do $$$AssertTrue(##class(%RoutineMgr).Exists("/csp/git/unittest/xsl/test.xsl"))
do $$$AssertFilesSame(##class(SourceControl.Git.Settings).%New().namespaceTemp_"csp/git/unittest/xsl/test.xsl", ..WebAppPath_"/test.xsl")
Expand Down
Loading