#!/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
--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;
;; # Nothing else to do
--mixed )
# Report what has not been updated.
- git-update-cache --refresh
+ git-update-index --refresh
;;
esac