altsem / gitu

A TUI Git client inspired by Magit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A command-line flag that displays the version

frank-lenormand opened this issue · comments

Hi,

It’d be convenient to have something like gitu --version, to know what version is currently in use.

HTH!

Got this working:

gitu on  master [$] ❯ gitu --version
gitu 0.7.2

It'll read out whether it was modified too (if git is available when building):
gitu v0.7.2-modified

and also include the commit hash if ahead of the version tag:
gitu v0.7.2-1-g768c76b