git-of-theseus examines how a Git repository evolves through the lifetime of a project. It is especially interested in code age, contributor influence and the changing proportion of the source tree that comes from different periods of development.
The project consists of analysis and plotting commands. A repository is processed into structured data, which can then be visualised to answer questions such as how much of the early code remains or how the share contributed by different authors has shifted.
The analysis distinguishes the year in which code originated from the year in which it is being measured. A project can therefore show strong growth while retaining relatively little of its earliest code. Cohort plots and contributor charts give complementary views of that history.
This is free and open source software.
Key Features
- Analyses commit history to estimate how the volume of source code changes over time.
- Groups lines of code into cohorts based on when they originally entered the repository.
- Generates stacked charts showing how much code from each historical cohort survives at later points.
- Produces author-based datasets to examine the changing composition of a codebase.
- Creates visualisations showing the percentage of code attributed to leading contributors.
- Supports normalised author plots for comparisons based on relative contribution shares.
- Separates analysis from chart generation by writing reusable structured JSON data.
- Includes information about file extensions, code cohorts and authors in its analysis output.
Website: github.com/erikbern/git-of-theseus
Support:
Developer: Erik Bernhardsson
License: Apache License 2.0

This plots the aggregate number of lines of code over time, broken down into cohorts by the year added.
git-of-theseus is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| Git Tools for Diff Review and Repository History | |
|---|---|
| difftastic | Structural diff tool that compares files based on their syntax |
| git-filter-repo | Quickly rewrite git repository history |
| onefetch | Displays information about a local Git repository |
| git-stats | Local git statistics including GitHub-like contributions calendars |
| diff-so-fancy | Attractive diffs with diff-highlight and more |
| BFG Repo-Cleaner | Clean unwanted data from Git repository history |
| git-delta | Viewer for git and diff output |
| gitlogue | Cinematic Git commit replay tool |
| git-quick-stats | Access various statistics in a git repository |
| git-who | Command-line Git analysis tool |
| git-standup | Recall what you did on the last working day |
| git-of-theseus | Analyze how a Git repo grows over time |
| git-sizer | Compute various size metrics for a git repository |
| diffnav | Git diff pager based on delta but with a file tree, à la GitHub |
| critique | Terminal UI for reviewing git diffs |
| git-big-picture | Visualization tool for Git repositories |
| hercules | Gain advanced insights from Git repository history |
| keifu | TUI that visualizes Git commit graphs |
| git-fame | Git repository collaborators sorted by contributions |
| needle | Highlights GitHub PRs |
| mergiraf | Git merge driver |
| git-history | Analyze Git history using SQLite |
| ec | Terminal Git mergetool |
| diffr | Word-by-word diff highlighting utility |
| git-scope | Fast TUI dashboard to view the git status of all your repositories |
| mamediff | Manages unstaged and staged Git diffs |
| deadbranch | Keep Git repositories tidy |
| GitTop | Lightweight desktop client for GitHub notifications |
| git-heatmap | Generates a customizable heatmap |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.