if (hasConflict) → UI merge; else → autoMerge := local + remoteDiff
| Modifier and Type | Field and Description |
|---|---|
| private final MergeBookkeeper | |
| private final GitHandlerRegistry | |
| private final ImportFormatPreferences |
| Access | Constructor and Description |
|---|---|
| public | GitSyncService(ImportFormatPreferences importFormatPreferences, GitHandlerRegistry gitHandlerRegistry, MergeBookkeeper bookkeeper)
|
| Modifier and Type | Method and Description |
|---|---|
| public static GitSyncService | |
| public BookkeepingResult | finalizeMerge(Path bibFilePath, PullPlan computation)
Phase-2: finalize after GUI saved the file with applied plan. |
| public Optional | prepareMerge(BibDatabaseContext localDatabaseContext, Path bibFilePath)
compute merge inputs/outputs for GUI |
| public PushResult |
| bookkeeper | back to summary |
|---|---|
| private final MergeBookkeeper bookkeeper | |
| gitHandlerRegistry | back to summary |
|---|---|
| private final GitHandlerRegistry gitHandlerRegistry | |
| importFormatPreferences | back to summary |
|---|---|
| private final ImportFormatPreferences importFormatPreferences | |
| GitSyncService | back to summary |
|---|---|
| public GitSyncService(ImportFormatPreferences importFormatPreferences, GitHandlerRegistry gitHandlerRegistry, MergeBookkeeper bookkeeper) | |
| create | back to summary |
|---|---|
| public static GitSyncService create(ImportFormatPreferences importFormatPreferences, GitHandlerRegistry registry) | |
| finalizeMerge | back to summary |
|---|---|
| public BookkeepingResult finalizeMerge(Path bibFilePath, PullPlan computation) throws GitAPIException, IOException, JabRefException Phase-2: finalize after GUI saved the file with applied plan. Responsibilities:
Preconditions:
| |
| prepareMerge | back to summary |
|---|---|
| public Optional compute merge inputs/outputs for GUI | |
| push | back to summary |
|---|---|
| public PushResult push(BibDatabaseContext localDatabaseContext, Path bibFilePath) throws GitAPIException, IOException, JabRefException | |