| 898 | } |
| 899 | |
| 900 | static int verify_one_sparse(struct index_state *istate, |
| 901 | struct strbuf *path, |
| 902 | int pos) |
| 903 | { |
| 904 | struct cache_entry *ce = istate->cache[pos]; |
| 905 | if (!S_ISSPARSEDIR(ce->ce_mode)) |
| 906 | return error(_("directory '%s' is present in index, but not sparse"), |
| 907 | path->buf); |
| 908 | return 0; |
| 909 | } |
| 910 | |
| 911 | /* |
| 912 | * Returns: |