2016-05-01 09:37:19 +08: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 15:46:27 +08:00
|
|
|
#include "fish_version.h"
|
|
|
|
|
2015-09-27 15:13:01 +08:00
|
|
|
#ifndef FISH_BUILD_VERSION
|
2018-01-08 17:39:45 +08: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.
|
|
|
|
static const char *
|
|
|
|
#include "FISH-BUILD-VERSION-FILE"
|
|
|
|
;
|
2015-09-27 15:13:01 +08:00
|
|
|
#endif
|
|
|
|
|
2016-05-01 09:37:19 +08:00
|
|
|
/// Return fish shell version.
|
|
|
|
const char *get_fish_version() { return FISH_BUILD_VERSION; }
|