2016-05-01 01:37:19 +00:00
|
|
|
// Fish version receiver.
|
|
|
|
//
|
|
|
|
// This file has a specific purpose of shortening compilation times when
|
|
|
|
// the only change is different `git describe` version.
|
2014-05-01 07:46:27 +00:00
|
|
|
#include "fish_version.h"
|
|
|
|
|
2015-09-27 07:13:01 +00:00
|
|
|
#ifndef FISH_BUILD_VERSION
|
2018-01-08 09:39:45 +00:00
|
|
|
// The contents of FISH-BUILD-VERSION-FILE looks like:
|
|
|
|
// FISH_BUILD_VERSION="2.7.1-62-gc0480092-dirty"
|
|
|
|
// Arrange for it to become a variable.
|
2018-09-29 04:20:50 +00:00
|
|
|
static const char * const
|
2018-01-08 09:39:45 +00:00
|
|
|
#include "FISH-BUILD-VERSION-FILE"
|
|
|
|
;
|
2015-09-27 07:13:01 +00:00
|
|
|
#endif
|
|
|
|
|
2016-05-01 01:37:19 +00:00
|
|
|
/// Return fish shell version.
|
|
|
|
const char *get_fish_version() { return FISH_BUILD_VERSION; }
|