mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 00:04:31 +08:00
f8e35de18d
Now fish shell stores version is a small file called by other files. This means that a slight change which modifies one file won't cause many of files to recompile. The compilation unit is intentionally small, this is by design. The smaller it is, the faster it will recompile, and it will be compiled a lot.
15 lines
311 B
C++
15 lines
311 B
C++
/** \file fish_version.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"
|
|
|
|
/**
|
|
* Return fish shell version.
|
|
*/
|
|
const char *get_fish_version() {
|
|
return FISH_BUILD_VERSION;
|
|
}
|