1 // Fish version receiver. 2 // 3 // This file has a specific purpose of shortening compilation times when 4 // the only change is different `git describe` version. 5 #include "fish_version.h" 6 7 #ifndef FISH_BUILD_VERSION 8 // The contents of FISH-BUILD-VERSION-FILE looks like: 9 // FISH_BUILD_VERSION="2.7.1-62-gc0480092-dirty" 10 // Arrange for it to become a variable. 11 static const char *const 12 #include "FISH-BUILD-VERSION-FILE" 13 ; 14 #endif 15 16 /// Return fish shell version. get_fish_version()17const char *get_fish_version() { return FISH_BUILD_VERSION; } 18