git-foresta in go, with more colors
Find a file
2026-02-04 22:51:35 -05:00
go.mod toggle no-color based on stdout target 2026-01-08 12:00:51 -05:00
go.sum toggle no-color based on stdout target 2026-01-08 12:00:51 -05:00
LICENSE reformat license 2026-01-07 13:59:04 -05:00
logo.png add logo 2026-01-07 23:42:53 -05:00
README.MD feat: pass args to git 2026-01-21 15:39:05 -05:00
rivera.go feat: use the length of the short commit hash from git as the default length 2026-02-04 22:51:35 -05:00
showoff.png chore: redo showoff.png 2026-01-07 23:42:40 -05:00
util.go fix: clamp hashlen to 4-40 2026-02-02 23:32:51 -05:00

git-rivera/git-河流

git-foresta in go

screenshot of git-rivera output, printing cli-pride-flags

features/differences from git-foresta

  • persistent branch coloring
  • --repository option to pass a path (no more needing to cd beforepaw)
  • a bit more control over overpasses (no more ODODO -> OOOOO)
  • accepts git args (git-rivera --rivera-arg -- --git-arg, --git-arg-2)

install

go install git.0xf0xx0.eth.limo/0xf0xx0/rivera@latest

from source

git clone https://git.0xf0xx0.eth.limo/0xf0xx0/rivera.git
cd rivera
go build
go install

usage

with git:

git rivera

or use it standalone:

git-rivera

options

    --repository path, --repo path                              repository path to use (default: ".")
    --hashlength len, --hashlen len, -l len                     length of the commit hash (default: 8)
    --style num, -s num                                         style num to select (1-5) (default: 1)
    --subvinedepth uint, --svdepth uint, --depth uint, -d uint  maximum length of merge subvines (default: 2)
    --graphmarginleft uint, --marginl uint                      left margin of the commit graph (default: 2)
    --graphmarginright uint, --marginr uint                     right margin of the commit graph (default: 1)
    --all, -a                                                   display all branches
    --reverse, -r                                               reverse the flow
    --branchcolors color,color[,color]                          comma separated color,color[,color] used for branches, passed straight to oigiki (default: "red, blue, yellow, green, cyan, magenta, white")
    --maxgitrecursedepth uint, --mgrd uint                      maximum depth to search for a .git dir (default: 8)
    --help, -h                                                  show help
    --version, -v                                               print the version
    --color                                                     force color output
    --nocolor, --stdout                                         disable color output

todo

  • finish compat