Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

submodule discovery and opening #484

Merged
merged 16 commits into from
Aug 17, 2022
Merged

submodule discovery and opening #484

merged 16 commits into from
Aug 17, 2022

Conversation

Byron
Copy link
Member

@Byron Byron commented Aug 17, 2022

Tasks

  • git-discover can find submodule workdirs
  • git-repository can open them

Fixes #482 and helps resolving starship/starship#4266

…ough. (#482)

We currently detect them as possibly bare, which could be improved if we
allow ourselves to see `.git/modules` as `submodule` always.
…#482)

That way we can avoid feeding `.git` files to `git-repository::open()`
and avoid work duplication, which ultimately allows to open submodules
directories of all kinds.
This includes submodule checkouts as well as their original module git
directories.
This should complete the list of git repository types and flavors.
…482)

It's actually used by `ein t organize` so we should keep it, and it's
probably useful
@Byron Byron merged commit 8f5f3ab into main Aug 17, 2022
@Byron Byron deleted the submodule-open branch August 17, 2022 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linked gitdirs without commondir file (submodules) don't resolve git dir
1 participant