Fix up "for_each_ref()" to be more usable, and use it in git-fsck-cache
[git.git] / git-reset-script
1 #!/bin/sh
2 : ${GIT_DIR=.git}
3 git-read-tree --reset HEAD
4 git-update-cache --refresh
5 rm -f "$GIT_DIR/MERGE_HEAD"