extrawurst/gitui

Submodule Support

DctrNoob opened this issue · 7 comments

I'd really like to see submodule support, i.e. updating and navigating into and out of submodules connected to the main repository. My most common use case is to invoke git submodule update --init --recursive after a git pull. Of course, once you navigate into a submodule, this module is just another repo and the normal gitui applies.

so I would understand this as multiple feature requests, correct me if I am wrong:

  1. update all submodules recursively
  2. list submodules
  3. navigate into a submodule (essentially spawning a new gitui inside the submodule) (see upstream)
  4. revert submodule changes (see upstream)

Sounds about right. Didn't really think this through so it's likely I am missing vital aspects.

stale commented

This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@DctrNoob I got a prof of concept in the PR working. but in order for this to be properly tested I'd like a test case that comes with a ton of submodules. got a good open source git repo for this to be tested in?

Try this one, it has ~10 submodules: https://github.com/mmp/pbrt-v4

Screenshot 2022-08-27 at 17 52 09

Now we have a PoC on master.

TODO:

  • update submodule
  • open submodule in gitui
  • support going to parent repo