Skip to content

eckertalex/git-trend

Repository files navigation

git-trend

Draws a line graph of cumulative git commits over time in the terminal. The x axis runs from the first commit to the last; the y axis is the running commit total. Plot the whole repo as one line, or pass authors to compare them, one line each.

The binary is named git-trend, so once it is on your PATH git runs it as git trend.

git trend                                          # every commit in the current repo
git trend --author alice                           # only commits matching "alice"
git trend --author alice --author bob              # a line each, side by side
git trend --since 2024-01-01 --until 2025-01-01    # a fixed window

Authors match as a case-insensitive substring of name or email. --since and --until accept any date git understands ("2 weeks ago", "2024-01-01", ...).

Flag Description
--author Author substring to plot as its own line (repeatable).
--since Only count commits after this date.
--until Only count commits before this date.
--version Print the version and exit.

git trend screenshot

Build and install with make:

make build       # ./bin/git-trend
make install     # to ~/.local/bin (override with BINDIR=)
make uninstall

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Contributors