Fix a logic error inside the `allowedargcount()` function. This function may be called with one or two arguments. However, no default values are assigned to `$1` and `$2` that are used inside a numerical comparison. Therefore, when using a bad number of arguments for the following lines: ``` listall|purge) allowedargcount 1;; addcurrent|removeworkspace) allowedargcount 2;; ``` Then, we would get the error `[: : integer expression expected`. To fix this, we assign the 0 default value to `$1` and `$2`, such that we trigger the error message destined to the user without any integer error when there is a bad number of argument and that the function is called with only 1 argument instead of 2. |
||
|---|---|---|
| .github | ||
| bin | ||
| etc | ||
| helper | ||
| man | ||
| tests | ||
| .editorconfig | ||
| .gitignore | ||
| .pytest.ini | ||
| AUTHORS | ||
| brew-release.patch | ||
| check_dependencies.sh | ||
| check_integrity.sh | ||
| Commands.md | ||
| CONTRIBUTING.md | ||
| History.md | ||
| install.cmd | ||
| install.sh | ||
| Installation.md | ||
| LICENSE | ||
| Makefile | ||
| need_git_commit | ||
| not_need_git_repo | ||
| Readme.md | ||
Git Extras
Little git extras.
Screencasts
Just getting started? Check out these screencasts:
- introduction (archive.org link) -- covers
git-ignore,git-setup,git-changelog,git-release,git-effortand more
Installation
See the Installation page.
Commands
Go to the Commands page for basic usage and examples.
GIT utilities -- repo summary, repl, changelog population, author commit percentages and more
Contributing
Interested in contributing? Awesome!
Please read Contributing before you make a PR, thanks!
The change of the default branch
As of Git Extras 6.4 the assumed default branch name changed from master to main.
This affects the Git Extras commands git archive-file, git delete-merged-branches, git delta, git pull-request, git show-merged-branches, git show-unmerged-branches, and git squash.
To change the default branch name to master: change either the configuration git-extras.default-branch or init.defaultBranch to master; the former takes precedence.
For example, git config git-extras.default-branch master.