You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
The CLI tool does not show a help page when not in a git repo, presumably because it doesn't expect to work at all outside a git repo.
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Run the following command outside a git repo.
git-quick-stats --help
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Expected behavior
A clear and concise description of what you expected to happen.
The help page should be displayed.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
MacOS, with the version installed via brew on 2024-06-05
The text was updated successfully, but these errors were encountered:
I'm not sure if we should extend using command line when you're outside of a git repo for this utility. None of the functionality would work without being in a repo.
That said, I could add a hook to display the usage text upon error, which displays the options you're asking for. But as an alternative, there exists manpages for this that can be called via man git-quick-stats that shows all the options, and that's the current recommended way to figure out how to use the utility.
Will look into how to possibly clean up the error messages when outside a git repo, though.
Describe the bug
A clear and concise description of what the bug is.
The CLI tool does not show a help page when not in a git repo, presumably because it doesn't expect to work at all outside a git repo.
To Reproduce
Steps to reproduce the behavior:
Run the following command outside a git repo.
Expected behavior
A clear and concise description of what you expected to happen.
The help page should be displayed.
Desktop (please complete the following information):
MacOS, with the version installed via brew on 2024-06-05
The text was updated successfully, but these errors were encountered: