| Access | Constructor and Description |
|---|---|
| public | SlrGitHandler(Path
The root of the initialized git repository repositoryPath)Initialize the handler for the given repository |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| pack-priv void | applyPatch(Map<Path, String> patch)
Applies for each file (specified as keys), the calculated patch (specified as the value) The patch is inserted between the encoding and the contents of the bib files. |
| pack-priv String | Returns: Returns the patch (diff) between the head of the sourceBranch and its previous commit HEAD^1The name of the branch that is the target of the calculation sourceBranch)Calculates the diff between the HEAD and the previous commit of the sourceBranch. |
| pack-priv Map | Returns: Returns a map where each file has its path as a key and the string contains the hunk of new resultsthe patch (diff) as a string patch)Applies the provided patch on the current branch Ignores any changes made to the study definition file. |
| SlrGitHandler | back to summary |
|---|---|
| public SlrGitHandler(Path repositoryPath) Initialize the handler for the given repository
| |
| appendLatestSearchResultsOntoCurrentBranch | back to summary |
|---|---|
| public void appendLatestSearchResultsOntoCurrentBranch(String patchMessage, String searchBranchName) throws IOException, org.eclipse.jgit.api.errors.GitAPIException | |
| applyPatch | back to summary |
|---|---|
| pack-priv void applyPatch(Map<Path, String> patch) Applies for each file (specified as keys), the calculated patch (specified as the value) The patch is inserted between the encoding and the contents of the bib files. | |
| calculatePatchOfNewSearchResults | back to summary |
|---|---|
| pack-priv String calculatePatchOfNewSearchResults(String sourceBranch) throws IOException, org.eclipse.jgit.api.errors.GitAPIException Calculates the diff between the HEAD and the previous commit of the sourceBranch. | |
| parsePatchForAddedEntries | back to summary |
|---|---|
| pack-priv Map Applies the provided patch on the current branch Ignores any changes made to the study definition file. The reason for this is that the study definition file cannot be patched the same way as the bib files, as the order of fields in the yml file matters. | |