Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1400

Add more info to the vcs module

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Invalid
    • Not Evaluated
    • None
    • None
    • General
    • None

    Description

      For Git, https://doc.qt.io/qbs/qml-qbsmodules-vcs.html#repoState-prop contains the latest commit. As this comment mentions, that is not enough. My use case is showing version info to the user for an application. Currently I can only show the commit SHA-1, whereas I really want to show the tag (e.g. v0.3.0), as that is what the user sees on the download page, not a SHA-1.

      Alternatively, it would be good to have another example after this one that explains how to achieve this manually. I'm going to try out the code here and see if it works, but it would be good to have an official example in the docs for that.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes