Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/cmake/GitVars.cmake # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / cmake / GitVars.cmake` 22 lines ยท 717 bytes Raw Blame History 1 find_package(Git) 2 3 # the commit's SHA1 4 execute_process(COMMAND 5 "${GIT_EXECUTABLE}" describe --match=NeVeRmAtCh --always --abbrev=8 6 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" 7 OUTPUT_VARIABLE GIT_SHA1 8 ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) 9 10 # the date of the commit 11 execute_process(COMMAND 12 "${GIT_EXECUTABLE}" log -1 --format=%ad --date=local 13 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" 14 OUTPUT_VARIABLE GIT_DATE 15 ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE) 16 17 # the subject of the commit 18 execute_process(COMMAND 19 "${GIT_EXECUTABLE}" log -1 --format=%s 20 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" 21 OUTPUT_VARIABLE GIT_COMMIT_SUBJECT 22 ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)