src/SyncTool.Git/main/Synchronization/SyncActions/GitSyncActionService.cs
/// <summary>
/// Creates the sync action branch in the underlying repository if it does not exist yet
/// </summary>
Creates the sync action branch in the underlying repository if it does not exist yet
Creates the sync action branch in the underlying repository if it does not exist yet
void EnsureBranchExists()
        {
            if (!Repository.Value.LocalBranchExists(BranchName))
            {
                var initalCommit = Repository.Value.GetInitialCommit();
                Repository.Value.CreateBranch(BranchName, initalCommit);
            }
        }
void EnsureBranchExists ( ) { if ( ! Repository . Value . LocalBranchExists ( BranchName ) ) { var initalCommit = Repository . Value . GetInitialCommit ( ) ; Repository . Value . CreateBranch ( BranchName , initalCommit ) ; } }
Creates the sync action branch in the underlying repository if it does not exist yet
Creates the sync action branch in the underlying repository if it does not exist yet