X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fbranch.sh;h=96609c82273a6f7189edda522ac65d2ae447d348;hb=refs%2Fchanges%2F63%2F26863%2F1;hp=e0377d63244b2d24027f21cd297683b7bdd1f1ac;hpb=5c19210b6d2f403f40e674fe7f0e4dafeebfa0ab;p=csit.git diff --git a/resources/libraries/bash/function/branch.sh b/resources/libraries/bash/function/branch.sh index e0377d6324..96609c8227 100644 --- a/resources/libraries/bash/function/branch.sh +++ b/resources/libraries/bash/function/branch.sh @@ -28,6 +28,11 @@ function checkout_csit_for_vpp () { # When the refspec is overriden, the computation is still performed, # in order to show (on Sandbox) the computation is correct. # + # Git status and git log -1 are executed, so the current state + # of the checked-out branch is visible. + # This is mainly useful for identifying trending anomalies + # caused by changes in CSIT code. + # # On failure, working directory could remain changed to ${CSIT_DIR}. # TODO: It could be possible to use ERR trap to force popd, # but with "set -x" the noise is not worth it, @@ -82,5 +87,7 @@ function checkout_csit_for_vpp () { else git checkout "${csit_branch}" || die fi + git status || die + git log -1 || die popd || die }