Skip to content

Add Git commit hash (if available) to .status all#1727

Open
michaelortmann wants to merge 6 commits into
eggheads:developfrom
michaelortmann:egg.git.version
Open

Add Git commit hash (if available) to .status all#1727
michaelortmann wants to merge 6 commits into
eggheads:developfrom
michaelortmann:egg.git.version

Conversation

@michaelortmann
Copy link
Copy Markdown
Member

@michaelortmann michaelortmann commented Jan 6, 2025

Found by: michaelortmann
Patch by: michaelortmann
Fixes:

One-line summary:
Adds Git commit hash (if available) to .status all

Additional description (if needed):
Think of this as additional version information, good for bug reports / debugging.

Test cases demonstrating functionality (if applicable):

.status all
[01:38:07] tcl: builtin dcc call: *dcc:status -HQ 1 all
[01:38:07] #-HQ# status all
I am BotA, running eggdrop v1.10.0+pythonfixes: 23 users (mem: 276k).
Online for 00:00 (terminal mode) - CPU: 00:00.01 - Cache hit: 66.7%
Configured with: 
Admin: Lamer <email: lamer@lamest.lame.org>
Config file: BotA.conf
OS: Linux 6.12.8-arch1-1
Process ID: 253975 (parent 191282)
Tcl library: /usr/lib/tcl8.6
Tcl version: 8.6.16 (header version 8.6.16)
Tcl is threaded.
TLS support is enabled.
TLS library: OpenSSL 3.4.0 22 Oct 2024 (header version OpenSSL 3.4.0 22 Oct 2024)
IPv6 support is enabled.
Threaded DNS core is enabled.
Socket table: 20/100

Git commit: 4e5db356baa1b85a9e314988b06ebe844697c8e8
[...]

@michaelortmann michaelortmann changed the title (RFC) set EGG_PATCH to short commit hash (RFC) Add Git commit hash (if available) to .status all Jan 7, 2025
@michaelortmann
Copy link
Copy Markdown
Member Author

If we had the commit hash in version info, it would show up in https://www.eggheads.org/uptime/, wouldnt that be nice?

@michaelortmann michaelortmann changed the title (RFC) Add Git commit hash (if available) to .status all Add Git commit hash (if available) to .status all Jun 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant