#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cmdref_dir="${script_dir}/cmdref"

if ! git diff --quiet -- "${cmdref_dir}" ; then
    git --no-pager diff "${cmdref_dir}"
    echo "HINT: to fix this, run 'make -C Documentation update-cmdref ; git commit Documentation/cmdref --message \"docs: Update cmdref\"'"
    exit 1
fi

#!/usr/bin/env bash

set -o errexit
set -o nounset
set -o pipefail

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cmdref_dir="${script_dir}/cmdref"

if ! git diff --quiet -- "${cmdref_dir}" ; then
    git --no-pager diff "${cmdref_dir}"
    echo "HINT: to fix this, run 'make -C Documentation update-cmdref'"
    exit 1
fi

Fix hint for updating cmdref
docs: Fix hint for updating cmdref

We don't want separate commits just for updating cmdref. Also, each
commit has to be compilable (think of git-bisect).

Signed-off-by: Martynas Pumputis <6b0d31c0d563223024da45691584643ac78c96e8@lambda.lt>
