aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_bif_info.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2013-01-31 17:10:32 +0100
committerLukas Larsson <[email protected]>2013-02-13 16:05:58 +0100
commit3e95d5f8e4a348efbb8fb1036da3fa9368c75ae2 (patch)
treeab0f23aaf36cb6387e105984da9fb58063099fdf /erts/emulator/beam/erl_bif_info.c
parent68b804f34d4ec420d86953e3f519179a40fbee8f (diff)
downloadotp-3e95d5f8e4a348efbb8fb1036da3fa9368c75ae2.tar.gz
otp-3e95d5f8e4a348efbb8fb1036da3fa9368c75ae2.tar.bz2
otp-3e95d5f8e4a348efbb8fb1036da3fa9368c75ae2.zip
Include git sha in prompt if available
The sha will only be included if there is no tag starting with OTP_R* associated with the sha. This is because we do not want the sha to show on offical releases.
Diffstat (limited to 'erts/emulator/beam/erl_bif_info.c')
-rwxr-xr-xerts/emulator/beam/erl_bif_info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_bif_info.c b/erts/emulator/beam/erl_bif_info.c
index a601e4fb39..8582a8954b 100755
--- a/erts/emulator/beam/erl_bif_info.c
+++ b/erts/emulator/beam/erl_bif_info.c
@@ -69,7 +69,11 @@ static char erts_system_version[] = ("Erlang " ERLANG_OTP_RELEASE
" [no-c-stack-objects]"
#endif
#ifndef OTP_RELEASE
+#ifdef ERLANG_GIT_VERSION
+ " [source-" ERLANG_GIT_VERSION "]"
+#else
" [source]"
+#endif
#endif
#ifdef ARCH_64
#if HALFWORD_HEAP