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

[Feature Request] Allow _GIT_* variables to be passed as command-line args #138

Open
slw07g opened this issue Aug 7, 2022 · 1 comment

Comments

@slw07g
Copy link

slw07g commented Aug 7, 2022

Allow _GIT_* variables to be passed as command-line args rather than having them set as environment variables.

ADDITIONAL USAGE
You can set _GIT_SINCE and _GIT_UNTIL to limit the git time log
ex: export _GIT_SINCE=\"2017-01-20\"
You can set _GIT_LIMIT for limited output log
ex: export _GIT_LIMIT=20
You can set _GIT_LOG_OPTIONS for git log options
ex: export _GIT_LOG_OPTIONS=\"--ignore-all-space --ignore-blank-lines\"
You can exclude directories or files from the stats by using pathspec
ex: export _GIT_PATHSPEC=':!pattern'
You can set _GIT_MERGE_VIEW to view merge commits with normal commits
ex: export _GIT_MERGE_VIEW=enable
You can also set _GIT_MERGE_VIEW to only show merge commits
ex: export _GIT_MERGE_VIEW=exclusive
You can set _MENU_THEME to display the legacy color scheme
ex: export _MENU_THEME=legacy
You can set _GIT_BRANCH to set the branch of the stats
ex: export _GIT_BRANCH=master"
}

@slw07g slw07g changed the title Feature: Allow _GIT_* variables to be passed as command-line args [Feature Request] Allow _GIT_* variables to be passed as command-line args Aug 7, 2022
@igbanam
Copy link

igbanam commented Dec 31, 2023

The way I use this is almost like command line variables; but "pre" command line variables

_GIT_SINCE="2023-01-01" _GIT_UNTIL="2023-12-31" git-quick-stats -a

I think this keeps the git-quick-stats API clean and focused enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants