Files
BackOne/ext/liboqs/scripts/git_commit.sh
T
dedysutanto 7cf826c6b6 feat: PQ hybrid groundwork — liboqs vendored, PQHybrid, KDF wiring
- ext/liboqs: vendored (ML-KEM/ML-DSA ready), -isystem ext/liboqs/include
- node/PQHybrid.*: KDF over X25519 agree + ML-KEM-768 encaps scaffold
- wire into IncomingPacket/Node/Bond/selftest/OneService paths
- zeroidc ext.rs: URL param parser unit tests
- SPEC.md: BackOne quantum-safe task table (T1–T23)
- research doc: hybrid PQ fork plan (ML-KEM+X25519, ML-DSA+Ed25519)
2026-09-30 15:08:25 +07:00

18 lines
486 B
Bash
Executable File

#!/bin/bash
# SPDX-License-Identifier: MIT
# Get the SHA-1 hash of the current git commit, if any
# based on https://stackoverflow.com/questions/8215785/how-can-i-use-ac-revision-with-git
changes=`git status -s 2>&1`
if [ $? -ne 0 ] ; then
# not a git repository
printf 'unknown'
elif [ "x$changes" == "x" ] ; then
# no changes since last commit
printf '%s' `git rev-parse HEAD`
else
# changes since last commit
printf '%s (+ local modifications)' `git rev-parse HEAD`
fi