JanDeDobbeleer / oh-my-posh

The most customisable and low-latency cross platform/shell prompt renderer
https://ohmyposh.dev
MIT License
16.79k stars 2.35k forks source link

Git segment: allow use of --ignore-submodules parameter #2455

Closed FWest98 closed 2 years ago

FWest98 commented 2 years ago

Code of Conduct

What would you like to see changed/added?

For big repositories with submodules, the git status can take quite some time. The --ignore-submodules parameter allows the user to decide how the submodules should be included in the status report. In one of my repositories, changing this from none to dirty yields a large speed-up (500ms -> 100ms).

This option is already configurable in the .gitmodules file (and in the git config), but I would still like to see this information by default in other vies; just not as part of my prompt. Therefore, I would really like to see the addition of a way to configure this in oh-my-posh; I would prefer both a default setting and a per-directory setting if possible.

FWest98 commented 2 years ago

Thank you very much!

github-actions[bot] commented 8 months ago

This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.