<table><tr><td style="">rjvbb created this revision.<br />rjvbb added a reviewer: KDevelop.<br />rjvbb added a project: KDevelop.<br />Restricted Application added a subscriber: kdevelop-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8158" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch adds and invokes a script that will decorate the patch version string of development builds with the output from <tt style="background: #ebebeb; font-size: 13px;">git describe --tags</tt> so that it includes the exact version of the code currently checked out.</p>

<p>This is something I often miss when looking at the version info in software installed from a development (git) snapshot, and I think should be useful in bug reports too.</p>

<p>The script returns the unchanged patch version if there is no .git directory, so this should be safe in release builds.</p>

<p>I'm not doing anything to the version reported for KDevPlatform; as far as I can tell this needs to be a purely numerical 3-level string.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Works as intended in my builds from the 5.2 branch. For instance, a triggered bug report generated by DrKonqi now has this as the 1st 2 lines:</p>

<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">Application: kdevelop (5.1.80-24-g6e3cfe2421)
 (Compiled from sources)</pre></div>

</div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8158" rel="noreferrer">https://phabricator.kde.org/D8158</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
generate-patchversion.sh</div></div></div><br /><div><strong>To: </strong>rjvbb, KDevelop<br /><strong>Cc: </strong>kdevelop-devel, geetamc, Pilzschaf, akshaydeo, surgenight, arrowdodger<br /></div>