Radish alpha
r
rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt
Git libraries for Radicle
Radicle
Git
surf: add submodule support
Merged fintohaps opened 2 years ago

Git submodules are encoded as commits when walking a Git tree. To allow the support of them in radicle-surf, the tree entry is checked for this case. The entry will be treated such that it is has a name, prefix, Oid, and the submodule’s URL.

It’s important to note that the Oid is not usable within the context of the repository that is being browsed, since they are entirely separate.

Instead, the URL should be used in conjunction with the Oid for browsing purposes outside of radicle-surf. However, in a future iteration it may be considered to be able to browse the local contents of the submodule, if possible.

fintohaps opened with revision bbec08fc on base e0b8789b +173 -11 2 years ago

Git submodules are encoded as commits when walking a Git tree. To allow the support of them in radicle-surf, the tree entry is checked for this case. The entry will be treated such that it is has a name, prefix, Oid, and the submodule’s URL.

It’s important to note that the Oid is not usable within the context of the repository that is being browsed, since they are entirely separate.

Instead, the URL should be used in conjunction with the Oid for browsing purposes outside of radicle-surf. However, in a future iteration it may be considered to be able to browse the local contents of the submodule, if possible.

fintohaps pushed revision 2 fdcdb229 on base e0b8789b +180 -20 2 years ago

Changes:

  • Update rust toolchain
  • Apply clippy changes
fintohaps pushed revision 3 928c578e on base e0b8789b +194 -20 2 years ago

Changes:

  • Only get the submodule if the repo is not bare
fintohaps pushed revision 4 8a1894ea on base e0b8789b +193 -20 2 years ago

Changes:

  • Boolean blindness caused me to only get a submodule for a bare repo. Improved the test to check for this by checking if the URL is set.
fintohaps merged revision 8a1894ea at ce858ec2 2 years ago