maxyu1115 / maxyu1115/git-backup-sync

During backup automatically call syncBackupBranch when it is behind

Open
#11 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Currently when backup, we just assume our backup branch is in sync with our working branch. By checking git commits, detect if the backup branch is out of sync, and if it is, call our syncBackupBranch.

A good place to add this logic is: https://github.com/maxyu1115/git-backup-sync/blob/5566ba242dd70915850f9e7f0270c5f2b171f0f0/src/extension.ts#L263

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/extension.ts at the backup logic around line 263, then read the existing syncBackupBranch function and the surrounding git operations. Compare the backup and working branches by their commits, and consider the work done when backup calls syncBackupBranch whenever the backup branch is behind.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.