feat(repo): allow making ephemeral repositories persistent#34
Merged
moyiz merged 4 commits intomoyiz:masterfrom Oct 23, 2025
Merged
feat(repo): allow making ephemeral repositories persistent#34moyiz merged 4 commits intomoyiz:masterfrom
moyiz merged 4 commits intomoyiz:masterfrom
Conversation
Contributor
Author
|
Close #34 |
Users can now make a repository, initially opened as ephemeral, persistent. This prevents the repository from being deleted when Neovim exits. A new `:GitDevPersist` user command has been introduced for this purpose. This is implemented by: - Removing the "VimLeavePre" autocmd responsible for cleanup. - Updating the session state to reflect the change. - Persisting this choice in the history by updating the record's options, ensuring the repository is opened as non-ephemeral in the future. - Linking the active session context to its history record via a new `history_key`.
moyiz
requested changes
Oct 22, 2025
Owner
moyiz
left a comment
There was a problem hiding this comment.
Thanks for taking the time to implement this feature and submit a PR. I totally neglected this feature request 😁
I have left few comments, will gladly merge this afterwards.
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.
Users can now make a repository, initially opened as ephemeral, persistent. This prevents the repository from being deleted when Neovim exits.
A new
:GitDevPersistuser command has been introduced for this purpose.This is implemented by:
history_key.