Convert many resolve_ref() calls to read_ref*() and ref_exists()
[git] / contrib / workdir /
drwxr-xr-x   ..
-rwxr-xr-x 1886 git-new-workdir