git-extras Documentation

GIT utilities -- repo summary, repl, changelog population, author commit percentages and more

18,124 stars Shell Shell 3 files ยท ~800 tokens #git
RAW Doc

Technical Documentation: tj/git-extras

โ„น๏ธ Provenance: Multi-Tier Ingestion ยท CodeWiki Reference

Overview (`Readme.md`)

Git Extras

Little git extras.

Screencasts

Just getting started? Check out these screencasts:

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.


Overview (`man/Readme.md`)

How to generate documentation:

DESCRIPTION

To generate documentation:

  1. Start by filling out the 'man-template.md'

  2. Then install a program ronn. Get ronn from github.

  3. Run make:

(Assumed you are under ./man when running the command below)

text
$ make -C .. man/git-<command>.{1,html}
  1. Remember, we use the following naming convention for files:
text
git-<command>.html
git-<command>.1
git-<command>.md

AUTHOR

Written by Leila Muhtasib <[email protected]>
Shell Script by Nick Lombard <[email protected]>

REPORTING BUGS

<https://github.com/tj/git-extras/issues>

SEE ALSO

<https://github.com/tj/git-extras>


Overview (`tests/README.md`)

Testing

Tests are written in Bats so coverage can be calculated for shell commands.

Bats Testing

We require a somewhat recent version of Bats. Version v1.8.1 is tested in CI. Once it is installed, the tests can be executed like so:

sh
bats ./tests

We highly recommend adding Bats tests for new features and fixes.

Code Coverage

Coverage can be calculated with bashcov like so:

sh
bashcov -- bats ./tests

By default, the report will be generated in ./coverage/index.html.


--- METRICS ---