X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=hacks%2Fapply_to_port;fp=hacks%2Fapply_to_port;h=439ab9154320c1b264f3c8803cab208f0b3aef6e;hb=0cf78dc64079ae17571db985b9087073ce88073c;hp=0000000000000000000000000000000000000000;hpb=8d20417855c563afa08bda167ccf8ab8609208fa;p=dcpomatic.git diff --git a/hacks/apply_to_port b/hacks/apply_to_port new file mode 100755 index 000000000..439ab9154 --- /dev/null +++ b/hacks/apply_to_port @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ "$1" == "" ]; then + echo "Syntax: $0 commit-message" + exit 1 +fi + +commit=`head -n 1 TO_PORT` +msg="$commit from master; $*" +echo $msg + +read -p "Commit? " -n 1 -r +echo +if [[ $REPLY =~ ^[Yy]$ ]] +then + sed -i '1d' TO_PORT + git commit -a -m "$msg" +fi \ No newline at end of file