mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
refactor: Avoid -W*-whitespace in git archive
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
// Copyright (c) 2012-2022 The Bitcoin Core developers
|
||||
// Copyright (c) 2012-present The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <bitcoin-build-config.h> // IWYU pragma: keep
|
||||
|
||||
#include <clientversion.h>
|
||||
|
||||
#include <util/string.h>
|
||||
#include <util/translation.h>
|
||||
|
||||
@@ -30,7 +31,8 @@ const std::string UA_NAME("Satoshi");
|
||||
// - "#define BUILD_GIT_COMMIT ...", if the top commit is not tagged
|
||||
// - "// No build information available", if proper git information is not available
|
||||
|
||||
//! git will put "#define GIT_COMMIT_ID ..." on the next line inside archives. $Format:%n#define GIT_COMMIT_ID "%H"$
|
||||
// git will expand the next line to "#define GIT_COMMIT_ID ..." inside archives:
|
||||
//$Format:%n#define GIT_COMMIT_ID "%H"$
|
||||
|
||||
#ifdef BUILD_GIT_TAG
|
||||
#define BUILD_DESC BUILD_GIT_TAG
|
||||
|
||||
Reference in New Issue
Block a user