corylus-git / corylus

Git, but a little bit easier
https://corylus.dev
Other
2 stars 0 forks source link

Better support mono-repos #56

Open DerNamenlose opened 2 years ago

DerNamenlose commented 2 years ago

Mono-repos usually have some kind of semantic structure in the form of sub-directories (e.g. for individual projects). Corylus should provide at least some support for this use case by allowing to open sub-directories as repositories and only track history etc. below those.

DerNamenlose commented 2 years ago

Probably enough to change the detection of the .git location and perhaps some minor details in the history handling.

DerNamenlose commented 2 years ago

.git detection can be done via git rev-parse --git-dir . in the directory we opened -> may be used to replace the current .git-detection in the Open dialog and store the result in the 'SimpleGitBackend` for later use in all places where we directly access files in the repo.