fish-shell/src/fish_version.cpp
ridiculousfish 20cb62440c Eliminate some mutable global variables
Make them const or otherwise get rid of them
2018-09-29 00:20:50 -04:00

17 lines
524 B
C++

// Fish version receiver.
//
// This file has a specific purpose of shortening compilation times when
// the only change is different `git describe` version.
#include "fish_version.h"
#ifndef FISH_BUILD_VERSION
// 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 * const
#include "FISH-BUILD-VERSION-FILE"
;
#endif
/// Return fish shell version.
const char *get_fish_version() { return FISH_BUILD_VERSION; }