Repository navigation
Add --sync and --config-reset; revamp docs & usage - #2
Merged
Merged
Conversation
Remove all branch context configuration from the repository at once.
Introduce --sync (-S), which mirrors a branch's context across the whole "preset" it defines: every member ends up referencing all the others. It works both standalone and right after a --config-add/-clear/-toggle edit. Removing a branch from a preset (via toggle/clear) then syncing detaches it from every preset member, conserving only its unrelated context. Clearing a branch's whole context tears the entire preset down. Replaces and expands previous `--config-sync` option.
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
Builds on the per-branch context configuration with two new capabilities and a documentation overhaul:
--sync(-S) — turn a branch's context into a shared preset where every member references all the others. Works standalone or as a modifier on an--config-add/--config-clear/--config-toggleedit, propagating that edit across the whole preset.--config-reset(-Z) — remove all branch context configuration from the repository, after an interactive confirmation.README.mdandusage(), plus a new Lazygit integration section with example log commands and context-management keybindings.