diff options
author | Matthew Brewer <tomboy64@sina.cn> | 2016-06-05 13:01:19 +0200 |
---|---|---|
committer | Matthew Brewer <tomboy64@sina.cn> | 2016-06-05 13:01:19 +0200 |
commit | 7ffea4126bfece837ad78ef214d00ddb20a9c8d2 (patch) | |
tree | 5179d6fe5eddbeefe8b2b7196bd092191498fc0e | |
parent | add dyncall experimentally (diff) | |
download | tbc-7ffea4126bfece837ad78ef214d00ddb20a9c8d2.tar.gz tbc-7ffea4126bfece837ad78ef214d00ddb20a9c8d2.tar.bz2 tbc-7ffea4126bfece837ad78ef214d00ddb20a9c8d2.zip |
update ortrta.sh
-rwxr-xr-x | tools/ortrta.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/ortrta.sh b/tools/ortrta.sh index 0d5d38f..281df2c 100755 --- a/tools/ortrta.sh +++ b/tools/ortrta.sh @@ -9,6 +9,7 @@ errorout() { } repoman_this() { + local gitdir=$(git rev-parse --show-toplevel) local ebuilds=( $(git diff --numstat HEAD^ | cut -f3 | grep '\.ebuild') ) local dirs=() for i in ${ebuilds[@]}; do @@ -22,7 +23,7 @@ repoman_this() { done if [[ ${inIt} -eq 0 ]]; then dirs+="${dir}" - pushd ${dir} + pushd "${gitdir}/${dir}" repoman full popd 2>&1 > /dev/null fi @@ -45,7 +46,7 @@ choose() { case ${response} in d ) - git diff --find-renames --find-copies --find-copies-harder --color=always HEAD^ | cat + git diff --find-renames --find-copies --find-copies-harder --color=always HEAD^ ;; e ) exit 0 @@ -80,7 +81,7 @@ choose() { resume() { count=$(GIT_EDITOR='cat' git rebase --edit-todo | grep -v '^#' | wc -l) while [[ ${count} -ge 0 ]]; do - git diff --color --stat HEAD^ | cat + git diff --color --find-renames --find-copies --find-copies-harder --stat HEAD^ | cat echo "left: ${count}" count=$(( count - 1 )) choose |