cympfh / git-hist

A CLI tool to quickly browse the git history of files on a terminal :footprints:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-hist

crates.io license: MIT

A CLI tool to quickly browse the git history of files on a terminal. This project is inspired by git-history.

Installation

cargo install git-hist

Usage

git hist <file>

You can use git-hist as a git subcommand, so the hyphen is not required.

Commands

  • Left/h; Right/l: Go to a previous; next commit.
  • Up/k; Down/j or mouse scrolls: Scroll up; down.
  • PageUp/Ctrl+d; PageDown/Ctrl+u: Scroll page up; down.
  • Home/g; End/G: Scroll to the top; bottom.
  • q/Ctrl+c: Exit.

Help

$ git-hist --help
git-hist {{ version }}
A CLI tool to quickly browse the git history of files on a terminal

USAGE:
    git-hist [FLAGS] [OPTIONS] <file>

ARGS:
    <file>    Set a target file path

FLAGS:
        --beyond-last-line    Set whether the view will scroll beyond the last line
        --emphasize-diff      Set whether the view will emphasize different parts
        --full-hash           Show full commit hashes instead of abbreviated commit hashes
    -h, --help                Print help information
    -v, --version             Print version information

OPTIONS:
        --date-format <format>    Set date format: ref. https://docs.rs/chrono/0.4.19/chrono/format/strftime/index.html [default: [%Y-%m-%d]]
        --date-of <user>          Use whether authors or committers for dates [default: author] [possible values: author, committer]
        --name-of <user>          Use whether authors or committers for names [default: author] [possible values: author, committer]
        --tab-size <size>         Set the number of spaces for a tab character (\t) [default: 4]
ezoic increase your site revenue

About

A CLI tool to quickly browse the git history of files on a terminal :footprints:

License:MIT License


Languages

Language:Rust 100.0%