Fix things for bash.

This commit is contained in:
2014-05-01 23:28:17 -07:00
parent c4f9df8968
commit 6ff0d0bf10
3 changed files with 51 additions and 15 deletions

View File

@@ -105,7 +105,8 @@ function git_root() {
function git_diff_replacing() {
local original_sha='HEAD~1'
local new_sha='HEAD'
while getopts "do:n:" OPTCHAR; do;
while getopts "do:n:" OPTCHAR;
do
case $OPTCHAR in
o)
original_sha="$OPTARG"
@@ -129,7 +130,8 @@ function git_diff_replacing() {
function git_reset_author() {
local should_update_command=''
local update_command=''
while getopts "a:e:A:E:h" OPTCHAR; do;
while getopts "a:e:A:E:h" OPTCHAR;
do
case $OPTCHAR in
a)
new_author="$OPTARG";