Skip to main content

Visualize when git commits were made in a repository in a calendar-like format.

Project description

Gitcal

Build Status codecov

A python script to visualize when git commits were made in a repository in a calendar-like format.

Examples

Display the number of commits in 2 hour blocks in 12 columns. A block with at least 4 commits is colored in green:

sample gitcal usage


An example of displaying two tables side-by-side, one with a border and different date range:

sample gitcal usage


Compare commits with other members of a collaborative project:

sample gitcal usage

Installation

pip install gitcal

Displaying Multiple Tables

gitcal uses the -T/--table argument to display multiple tables. A table is created based on the arguments on each side of -T, where the command below is used to create multiple tables:

gitcal -T -n "My Commits" --num --no-label -f "<my username>" -t 4 -T -n "Partner 1" -f "<partner 1>" -f "<also partner 1>"
#     ^   ^_______________________table 2________________________^    ^______________________table 3______________________^
#     |
# table 1

A sample result of the above command (below describes each table):

sample gitcal usage

Table 1

Since there are no arguments to the left of the first -T, the default table with all the daily commits is displayed per week.

Table 2

To the right side of the first -T, we:

  • set the table name with -n
  • turn on commit counts with --num (underlines are used to distinguish number entries since there is no spacing on borderless tables)
  • turn off labels with --no-label since the labels from the first table can be used instead
  • filter for one user with -f
  • set the color threshold -t to 4 commits

Table 3

The second -T separates the second and third table options. Note how table 3 only explicitly sets the table name and user filter, but the settings from the second table are carried over to the third table as well. Most, but not all, settings are carried over between tables so they do not have to be repeated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitcal-0.0.3.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitcal-0.0.3-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file gitcal-0.0.3.tar.gz.

File metadata

  • Download URL: gitcal-0.0.3.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for gitcal-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ef776e251067cd7e0bb80a67f0c791c9d2c3de9478e43bf5e043b10d524762bf
MD5 e3a50f020973e0c7d789e3ae6f5583b7
BLAKE2b-256 d69615558469e3c2754668633aacb70349a6a31a8b1577b3827b1dc239400be1

See more details on using hashes here.

File details

Details for the file gitcal-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gitcal-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10

File hashes

Hashes for gitcal-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a637b43935a34e0e28e58e9091c90c1b9686f555be4a844d5071d5ff0ccd0abf
MD5 3b4fcfc2f2530bb2bbf251a3cf096c75
BLAKE2b-256 7f7273e952b715259108094553d206854c5fd5d1d9c2a2135ef3ff2158637f52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page