restore point, captured before the first change - #8
Merged
Conversation
records how the machine looked before mda touched anything, once, so a botched set or apply has a way back: mda apply initial. it is deliberately not a preset. ~/.mda is meant to be shared, and a restore point that follows a dotfiles checkout onto a second machine both suppresses capture there and offers to restore state that machine never had. it lives in ~/Library/Application Support/mda instead, and the name is reserved so no preset can shadow it. MDA_PRESETS_DIR and MDA_STATE_DIR let the cli be driven against throwaway directories, which is what the new MDATests target does — the wiring had no coverage before because the only way to exercise it was to aim it at the developer's own ~/.mda.
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 freeto 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.
mda apply initial— how the machine looked before mda first touched it. written once, never rewritten.not a preset. lives in
~/Library/Application Support/mda, so a dotfiles checkout can't carry it to a mac it doesn't describe: adr 0002MDA_PRESETS_DIR/MDA_STATE_DIRso the cli can be run against throwaway dirs —Tests/MDATests.