Former-commit-id:4d2baf48d9
[formerlyaa46aa3713
] [formerly4d2baf48d9
[formerlyaa46aa3713
] [formerlya2c88aee12
[formerly 44388508c45f2c560301558c4fb297b806ba55a7]]] Former-commit-id:a2c88aee12
Former-commit-id:927fd978b4
[formerlybc15e39e5e
] Former-commit-id:a9dafc2233
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/gpush
|
|
|
|
# Show stats
|
|
$dir/gstat
|