diff options
author | Michael Reed <m.reed@mykolab.com> | 2015-11-19 16:13:12 -0500 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2015-12-05 16:15:32 -0500 |
commit | 7be12edd38b1da0a506f39651d8c6a6f9aa5626a (patch) | |
tree | 9cccdbdb46a16bdf49b2f274cb83c18dbff3abc3 /src | |
parent | 4a1c36e953559382362b79be7630a64163c43ef2 (diff) | |
download | rneovim-7be12edd38b1da0a506f39651d8c6a6f9aa5626a.tar.gz rneovim-7be12edd38b1da0a506f39651d8c6a6f9aa5626a.tar.bz2 rneovim-7be12edd38b1da0a506f39651d8c6a6f9aa5626a.zip |
Remove "Commit:" field from `--version` output
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/version.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/nvim/version.c b/src/nvim/version.c index 83a47c207d..069574c087 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -37,9 +37,6 @@ char *Version = VIM_VERSION_SHORT; char *longVersion = NVIM_VERSION_LONG; char *longVersionWithDate = NVIM_VERSION_LONG \ " (compiled " __DATE__ " " __TIME__ ")"; -#ifdef NVIM_VERSION_COMMIT -char *version_commit = "Commit: " NVIM_VERSION_COMMIT; -#endif char *version_buildtype = "Build type: " NVIM_VERSION_BUILD_TYPE; char *version_cflags = "Compilation: " NVIM_VERSION_CFLAGS; @@ -1099,9 +1096,6 @@ void list_version(void) // When adding features here, don't forget to update the list of // internal variables in eval.c! MSG(longVersionWithDate); -#ifdef NVIM_VERSION_COMMIT - MSG(version_commit); -#endif MSG(version_buildtype); MSG(version_cflags); |