awips2/tools/scripts/uamend
Steve Harris 9b5c2094ed 12.9.1-5 baseline
Former-commit-id: 61f269f54c [formerly 61f269f54c [formerly d85b989f77196d20eb2d2a21cf4daa13d50474ae]]
Former-commit-id: f2fac39428
Former-commit-id: 72824561cb
2012-08-21 15:27:03 -05:00

22 lines
271 B
Bash

#!/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/upush
# Show stats
$dir/ustat