mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
e2297a7833
- Updated source code layout to use standard Go project structure. - Makefile for build and test execution. - Glide for dependency management. - Integrated spf13/cobra for command line entry point. - Added docs on release and development process.
10 lines
168 B
Bash
Executable File
10 lines
168 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
GIT_SHA=$(git rev-parse --short HEAD)
|
|
|
|
if [ -z "$(git status --porcelain 2>/dev/null)" ]; then
|
|
echo $GIT_SHA
|
|
else
|
|
echo "$GIT_SHA-dirty"
|
|
fi
|