diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-06-20 20:39:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-06-21 15:45:48 +0300 |
commit | 5b549d176ba6eff19400c5edbd100eec825f6200 (patch) | |
tree | 2546b0a0482aeb996fc303e3e8bf94866dd73c79 /libbutl/standard-version.mxx | |
parent | 6bad683716510e148852856417bd8558a7735195 (diff) |
Make standard_version::string_project() to optionally include the revision
Diffstat (limited to 'libbutl/standard-version.mxx')
-rw-r--r-- | libbutl/standard-version.mxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libbutl/standard-version.mxx b/libbutl/standard-version.mxx index 3c38242..83e9442 100644 --- a/libbutl/standard-version.mxx +++ b/libbutl/standard-version.mxx @@ -116,8 +116,12 @@ LIBBUTL_MODEXPORT namespace butl // // Note: return empty if the corresponding component is unspecified. // - std::string string () const; // Package version. - std::string string_project () const; // Project version (no epoch/rev). + std::string string () const; // Package version. + + // Project version (no epoch). + // + std::string string_project (bool revision = false) const; + std::string string_project_id () const; // Project version id (no snapsn). std::string string_version () const; // Version only (no snapshot). std::string string_pre_release () const; // Pre-release part only (a.1). |