Change-Id: I663c5dce55a0f7b3f2cd128b526d1d211ad096e7 Former-commit-id: 090d7432f86c51f9b23ffb6af387f2fbb0142dcb
22 lines
271 B
Bash
Executable file
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/upush
|
|
|
|
# Show stats
|
|
$dir/ustat
|