Initial implementation#1
Draft
chris-peterson wants to merge 1 commit intomainfrom
Draft
Conversation
41e914a to
2651b62
Compare
Filter origin/fi from legacy-format branch parsing so it does not appear as a phantom branch in the list output. Also stop emitting 'origin/fi' in the empty legacy commit message to prevent future occurrences.
2651b62 to
3f3c4e0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TypeScript implementation of
git-fi— a git plugin that maintains a temporary integration branch (fi) for early conflict detection and collaborative testing.--add,--remove,--force,--again,--prune,--abortcommands with in-place TTY annotation updates--selectmode for add/remove/unified selection--bareand--jsonflags for scriptingDiagrams
Command Dispatch
%%{ init: { 'look': 'handDrawn' } }%% flowchart TD A[git fi] --> B{Action flag?} B -- none --> L[List branches in fi] B -- -a --> ADD[Add branches] B -- -r --> REM[Remove branches] B -- -f --> FRC[Force-replace branches] B -- -g --> AGN[Re-merge current branches] B -- -p --> PRN[Prune dead/merged branches] B -- -A --> ABT[Re-pull fi from origin] B -- -s --> SEL[Interactive picker] ADD --> M[Merge Process] REM --> M FRC --> M AGN --> M PRN --> M SEL --> M M --> S{Success?} S -- yes --> PUSH[Commit + force-push fi] S -- no --> FAIL[Abort + report conflicts] PUSH --> CLEAN[Restore original branch] FAIL --> CLEANMerge Process
%%{ init: { 'look': 'handDrawn' } }%% flowchart TD PRE[Preflight checks] --> FETCH[Fetch origin] FETCH --> FI{origin/fi exists?} FI -- no --> BOOT{Bootstrap prompt} BOOT -- no --> X[Abort] BOOT -- yes --> DEAD FI -- yes --> DEAD[Prune dead branches] DEAD --> WARN[Warn already-merged] WARN --> CO[Checkout -B fi from main] CO --> MRG[git merge --no-commit --no-ff] MRG --> OK{Merge clean?} OK -- yes --> CMT[Commit with branch list] CMT --> PSH[git push -f origin fi] PSH --> LIST[Print branch table] OK -- no --> RST[git reset --hard] RST --> RPT[Report failed branches] LIST --> FIN[Delete local fi, restore branch] RPT --> FINImplementation Notes
src/index.tssrc/commands.tssrc/merge.tssrc/git.tssrc/gitlab.tssrc/style.tssrc/ui.tssrc/types.tsdocs/SPEC.mdSTATUS.md