VirtualBox

Changeset 84269 in vbox


Ignore:
Timestamp:
May 12, 2020 9:18:29 AM (4 years ago)
Author:
vboxsync
Message:

tools/bin/backport-*: Added --show-diff switch for showing an optional unified diff before committing.

Location:
trunk/tools/bin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/backport-commit.sh

    r83904 r84269  
    9797# Do the committing.
    9898#
     99if [ -n "${MY_SHOW_DIFF}" ]; then
     100    echo "***"
     101    echo "*** Diff:"
     102    "${MY_SVN}" diff --internal-diff
     103    echo "*** end diff ***"
     104    echo "***"
     105    echo ""
     106fi
    99107echo "***"
    100108echo "*** Commit message:"
     
    130138done
    131139exit 1;
    132 
  • trunk/tools/bin/backport-common.sh

    r84268 r84269  
    7474MY_DEBUG=
    7575MY_FORCE=
     76MY_SHOW_DIFF=
    7677
    7778while test $# -ge 1;
     
    136137        --update-first|--update|-u)
    137138            MY_UPDATE_FIRST=1
     139            ;;
     140
     141        --show-diff)
     142            MY_SHOW_DIFF=1
    138143            ;;
    139144
     
    169174            echo "  --force"
    170175            echo "    Forces backporting, regardless of ancestry. Use with caution!"
     176            echo "  --show-diff"
     177            echo "    Shows unified diff before backporting."
    171178            echo "  --update-first, --update, -u"
    172179            echo "    Merge only: Update the branch before merging."
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette