]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-reset.sh
Big tool rename.
[thirdparty/git.git] / git-reset.sh
similarity index 94%
rename from git-reset-script
rename to git-reset.sh
index 863e2a997ebcdba515af6a7af421235f56b81cc9..04c1ac0fd2e9e147f89b92cdd831572d53bcfb88 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
-. git-sh-setup-script || die "Not a git archive"
+. git-sh-setup || die "Not a git archive"
 
 tmp=/var/tmp/reset.$$
 trap 'rm -f $tmp-*' 0 1 2 3 15
@@ -66,7 +66,7 @@ case "$reset_type" in
 --hard )
        # Hard reset matches the working tree to that of the tree
        # being switched to.
-       git-checkout-cache -f -u -q -a
+       git-checkout-index -f -u -q -a
        git-ls-files --cached -z |
        perl -e '
                use strict;
@@ -90,7 +90,7 @@ case "$reset_type" in
        ;; # Nothing else to do
 --mixed )
        # Report what has not been updated.
-       git-update-cache --refresh
+       git-update-index --refresh
        ;;
 esac