mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
7be12edd38
If nvim is built from a non-tagged commit, the truncated commit hash is already appended to the main version string (e.g., "NVIM v0.1.0-83-g959f260 ..."), making the "Commit:" field redundant. Regarding the truncated hash length: we don't have nearly enough commits to worry about collisions, and probably won't ever, so the default length should be fine.
14 lines
457 B
C
14 lines
457 B
C
#ifndef AUTO_VERSIONDEF_H
|
|
#define AUTO_VERSIONDEF_H
|
|
|
|
#define NVIM_VERSION_MAJOR @NVIM_VERSION_MAJOR@
|
|
#define NVIM_VERSION_MINOR @NVIM_VERSION_MINOR@
|
|
#define NVIM_VERSION_PATCH @NVIM_VERSION_PATCH@
|
|
#define NVIM_VERSION_PRERELEASE "@NVIM_VERSION_PRERELEASE@"
|
|
#cmakedefine NVIM_VERSION_MEDIUM "@NVIM_VERSION_MEDIUM@"
|
|
|
|
#define NVIM_VERSION_CFLAGS "@NVIM_VERSION_CFLAGS@"
|
|
#define NVIM_VERSION_BUILD_TYPE "@NVIM_VERSION_BUILD_TYPE@"
|
|
|
|
#endif // AUTO_VERSIONDEF_H
|