X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-reset.sh;h=fe53fc8065dc82c0054ba9891b28a00b0752bf87;hb=8e1618f9612a78ea09b2a926797c781fe06027c9;hp=72ef303aedc69a1d9cdd946a91059638cb2e550a;hpb=069b20a198f171512a1d2d2163b40f70c94f5257;p=git.git diff --git a/git-reset.sh b/git-reset.sh index 72ef303a..fe53fc80 100755 --- a/git-reset.sh +++ b/git-reset.sh @@ -1,11 +1,9 @@ #!/bin/sh -. git-sh-setup -usage () { - die 'Usage: git reset [--mixed | --soft | --hard] []' -} +USAGE='[--mixed | --soft | --hard] []' +. git-sh-setup -tmp=/var/tmp/reset.$$ +tmp=${GIT_DIR}/reset.$$ trap 'rm -f $tmp-*' 0 1 2 3 15 reset_type=--mixed @@ -102,4 +100,4 @@ case "$reset_type" in ;; esac -rm -f "$GIT_DIR/MERGE_HEAD" +rm -f "$GIT_DIR/MERGE_HEAD" "$GIT_DIR/rr-cache/MERGE_RR"