Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jez/git-heatmap

:bar_chart: Display a heatmap for oft-edited files
https://github.com/jez/git-heatmap

cli git visualization

Last synced: about 1 month ago
JSON representation

:bar_chart: Display a heatmap for oft-edited files

Awesome Lists containing this project

README

        

# git-heatmap

> Display a heatmap for oft-edited files

![screenshot of git heatmap](screenshot.png)

## Install

### Dependencies

You must have the either `barchart` or `bars` command on your system first. Pick
your poison:

```bash
# either:
npm install -g https://github.com/jez/bars.git
# or:
cargo install --git https://github.com/jez/barchart.git
```

### Installation

Download `git-heatmap` and put it on your path.

```bash
# Homebrew:
brew install jez/formulae/git-heatmap
```

## Usage

```
❯ git heatmap -h
Heatmap of oft-edited files.

Usage:
git heatmap [options] [...]

Options:
-n Limit to top files. [default: 30]
--width Limit histogram to chars.
-b , --base Compare relative to . If on ,
show heatmap for entire repo. [default: master]
-c , --char Use to draw the bars. [default: █]
-f , --filter Filter output through before creating the
the histogram.
-h Show this message.
```

## FAQ

- **How do I disable color?**

Color is automatically disabled when output is not to a TTY (for example, when
piping to another command or redirecting to a file). If you need a flag to
control this, open an issue with your use case.

- **How do I heatmap directories instead of files?**

Use `--filter 'xargs dirname'`.

## License

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://jez.io/MIT-LICENSE.txt)