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

lib/omb-prompt-base: Set a timeout on git commands #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 14, 2023

  1. lib/omb-prompt-base: Set a timeout on the git command

    The calculate of git_summary_status can be extremely expensive for
    large repos. This results in the shell becoming unresponsive.
    
    We now set a timeout of 0.2 seconds to make sure we always have a
    responsive shell.
    
    * lib/omb-prompt-base: Set a timeout on git commands
    * lib/omb-prompt-base: Fix timeout bug
    * lib/omb-prompt-base: Rename function "{run_with => _omb_prompt}_timeout"
    * lib/omb-prompt-base(_omb_prompt_timeout): Fix coding style
    * lib/omb-prompt-base(_omb_prompt_timeout): Check timeout commands on startup
    
    Fixes ohmybash#172
    Co-authored-by: Koichi Murase <[email protected]>
    Erwin Jansen authored and akinomyoga committed Oct 14, 2023
    Configuration menu
    Copy the full SHA
    67e0e26 View commit details
    Browse the repository at this point in the history