From 04ae622c121c197183a1224a8306db1c2dd4d434 Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 25 Apr 2018 17:56:14 -0400 Subject: [PATCH] suppress version branch info if not BETA I think this is needed to avoid inevitable questions/confusion. Having the git hash in the version string of official binaries is a very good thing, however. --- src/version.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/version.c b/src/version.c index b5fdf3ba5..5055e8df6 100644 --- a/src/version.c +++ b/src/version.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 version.c $NHDT-Date: 1519155525 2018/02/20 19:38:45 $ $NHDT-Branch: githash $:$NHDT-Revision: 1.47 $ */ +/* NetHack 3.6 version.c $NHDT-Date: 1524693365 2018/04/25 21:56:05 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.49 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /*-Copyright (c) Michael Allison, 2018. */ /* NetHack may be freely redistributed. See license for details. */ @@ -66,8 +66,10 @@ char *buf; Sprintf(eos(buf), "%s%s", c++ ? "," : "", NetHack_git_sha); #endif #if defined(NETHACK_GIT_BRANCH) +#if defined(BETA) if (NetHack_git_branch) - Sprintf(eos(buf), "%s%s", c++ ? "," : "", NetHack_git_branch); + Sprintf(eos(buf), "%sbranch:%s", c++ ? "," : "", NetHack_git_branch); +#endif #endif Sprintf(eos(buf), ")"); }