Added DirectoryRepo as a GitRepo substitute, for non-git VCS support with repomap etc.#3429
Open
QuadrupleA wants to merge 1 commit intoAider-AI:mainfrom
Open
Added DirectoryRepo as a GitRepo substitute, for non-git VCS support with repomap etc.#3429QuadrupleA wants to merge 1 commit intoAider-AI:mainfrom
QuadrupleA wants to merge 1 commit intoAider-AI:mainfrom
Conversation
… used on a dir with other version control systems (--no-git).
This was referenced Mar 3, 2025
|
This is a very necessary feature. A lot of the times I want to use aider I am experimenting with code and I don't want to go through the hassle of having to add new experimental files to git and restart aider just for it to decide to work. |
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.
I use and prefer the fossil version control system to git; sadly, Aider unnecessarily disables basic features like building the
RepoMapor listing/iterating files in the current or command-line directory when a git repo is not present, rather than just obviously unsupportable features like/commit,/undo, etc.This PR creates a
DirectoryRepoobject, as an alternative forGitRepowhen a git repo is not found, which allows Aider to iterate the files in the directory in --no-git mode (using either the startup CWD, or the single directory passed on command line). It handles & respects the.aiderignorefile.This restores the functionality of
/map,/ls, etc. and allows it to work well with other version control systems (e.g. with manual commits / undos via/run fossil revertor/run fossil commit -m "...").At launch, with
--no-gitin a non-git directory, Aider will now show: