altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.7k stars 88 forks source link

A command-line flag that displays the version #72

Closed frank-lenormand closed 4 months ago

frank-lenormand commented 4 months ago

Hi,

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

HTH!

altsem commented 4 months ago

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