Skip to content

htop --version output is strange on git checkout #1621

@rubyFeedback

Description

@rubyFeedback

Hello htop devs,

I just git cloned htop, aka today, and compiled it. It all works fine too on my Linux machine. \o/

However had, when I run this:

htop --version

I get the following output:

htop 3.4.0-dev-3.3.0-269-g899c6b6

I believe the prior output from stable htop, was simply that:

htop 3.3.0

I assume the trailing part is some internal hash git may use or so, but what I find confusing
is that in the above output of the git checkout, we see two version strings:

htop 3.4.0-dev-3.3.0

Aka both 3.4.0 and 3.3.0.

I also compile mpv from git sources and it has output such as this:

 mpv v0.39.0-758-gf385a6b25 

So, also that strange trailing hash part, but more importantly, the version only once,
aka 0.39.0. So I think htop may be a bit too eager in regards to showing version output.

This is not really very important :) but I actually do batch-query all locally installed versions
of programs, and then use that to compare to a database of programs that could be upgraded,
so if at all possible, I think simplifying this to just one version would be better. I guess at the
least the "3.3.0" string there should not be shown, if the first reported version in the String
is 3.4.0 (aka different).

Metadata

Metadata

Assignees

No one assigned

    Labels

    support requestThis is not a code issue but merely a support request. Please use the mailing list or IRC instead.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions