Skip to content
Snippets Groups Projects

add branch name or tag in admin index

Merged Ghislain Loas requested to merge show_branch_name_in_admin_index into master
Compare and
4 files
+ 36
8
Preferences
Compare changes
Files
4
@@ -21,7 +21,10 @@
class Class_BokehVersion {
use Trait_SimpleWebClient;
use
Trait_SimpleWebClient,
Trait_StaticCommand;
public function current() {
return BOKEH_RELEASE_NUMBER;
@@ -62,4 +65,11 @@ class Class_BokehVersion {
? current($versions)['name']
: $this->current();
}
public function getCurrentBranchName() : string {
$command = $this->getCommand();
return trim($command->exec(sprintf('cd %s && git name-rev --name-only HEAD 2>&1',
ROOT_PATH)));
}
}
\ No newline at end of file