mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
c2970f9618
This runs build_tools/style.fish, which runs clang-format on C++, fish_indent on fish and (new) black on python. If anything is wrong with the formatting, we should fix the tools, but automated formatting is worth it.
17 lines
523 B
C++
17 lines
523 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; }
|