Skip to content

Add safeguard for out of sync loadBackup #10

Closed
@maxyu1115

Description

@maxyu1115

Currently loading backups will directly load whatever is on the remote backup branch. However, this is not safe to do when the remote backup branch is ahead of your actual branch.

For example, say I created a backup branch gbs-backup-example for my branch example. If my local example branch is at commit X. and my remote/gbs-backup-example is at commit X+2, we shouldn't directly bring in the work in progress from the remote.

Instead, after we detect such a scenario, we should create a stern warning for the user with a popup window, ask if they are certain, and only proceed when they confirm.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions