mirror of
https://github.com/containers/podman.git
synced 2025-06-28 14:29:04 +08:00
Merge pull request #16174 from vrothberg/tree-status
hack/tree_status.sh: print diff at the end
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
SUGGESTION="${SUGGESTION:-sync the vendor.conf and commit all changes.}"
|
SUGGESTION="${SUGGESTION:-run \"make vendor\" and commit all changes.}"
|
||||||
|
|
||||||
STATUS=$(git status --porcelain)
|
STATUS=$(git status --porcelain)
|
||||||
if [[ -z $STATUS ]]
|
if [[ -z $STATUS ]]
|
||||||
@ -11,5 +11,9 @@ else
|
|||||||
echo "tree is dirty, please $SUGGESTION"
|
echo "tree is dirty, please $SUGGESTION"
|
||||||
echo ""
|
echo ""
|
||||||
echo "$STATUS"
|
echo "$STATUS"
|
||||||
|
echo ""
|
||||||
|
echo "---------------------- Diff below ----------------------"
|
||||||
|
echo ""
|
||||||
|
git --no-pager diff
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user