godot icon indicating copy to clipboard operation
godot copied to clipboard

Store and display custom Git branch name in version information

Open Calinou opened this issue 2 years ago • 7 comments

This information is visible in the project manager, editor, command line help and About dialog (trimmed to 20 characters in places where it's displayed in the editor). It can also be queried using Engine.get_version_info()["branch"].

This helps avoid mistakes when testing multiple builds from various branches.

Internally, the constant is VERSION_GIT_BRANCH as VERSION_BRANCH is already used to store the major.minor version number.

If the branch name is a standard Godot maintenance branch (such as master or 4.1), the branch name is an empty string (or unknown in Engine.get_version_info()'s return value).

Preview

Screenshot_20231016_005945

Calinou avatar Oct 16 '23 15:10 Calinou