awips2/tools/scripts/uamend
Steve Harris 62c103b74e Issue #708 - execute permissions didn't survive the git push
Former-commit-id: 6c95a4db02 [formerly 4d2baf48d9] [formerly aa46aa3713] [formerly 6c95a4db02 [formerly 4d2baf48d9] [formerly aa46aa3713] [formerly a2c88aee12 [formerly aa46aa3713 [formerly 44388508c45f2c560301558c4fb297b806ba55a7]]]]
Former-commit-id: a2c88aee12
Former-commit-id: 7be273eeda [formerly 927fd978b4] [formerly 05e4bb28fa76f6cf166544e27f172c99b046f856 [formerly bc15e39e5e]]
Former-commit-id: 9cd06da6513a33a536d518472cc5cb70f222a0da [formerly a9dafc2233]
Former-commit-id: c2a1dd7f1b
2012-06-22 12:08:20 -05:00

22 lines
271 B
Bash
Executable file

#!/bin/sh
dir=`dirname $0`
sedCmd=''
if [ -n "$1" ]
then
sedCmd="s/Change-Id/Amend: $1\n\nChange-Id/"
fi
sedCmd="sed -i '$sedCmd'"
git add -A
export EDITOR=$sedCmd
echo "EDITOR command = $EDITOR"
git commit --amend
# Push
$dir/gpush
# Show stats
$dir/gstat