S_ISDIR 11 abspath.c return (!stat(path, &st) && S_ISDIR(st.st_mode)); S_ISDIR 217 archive-tar.c if (S_ISDIR(mode) || S_ISGITLINK(mode)) { S_ISDIR 297 archive-zip.c if (S_ISDIR(mode) || S_ISGITLINK(mode)) { S_ISDIR 136 archive.c if (S_ISDIR(mode) || S_ISGITLINK(mode)) S_ISDIR 147 archive.c if (S_ISDIR(mode) || S_ISGITLINK(mode)) { S_ISDIR 153 archive.c return (S_ISDIR(mode) ? READ_TREE_RECURSIVE : 0); S_ISDIR 216 archive.c if (S_ISDIR(mode)) { S_ISDIR 303 archive.c if (S_ISDIR(mode)) { S_ISDIR 394 archive.c if (err || !S_ISDIR(mode)) S_ISDIR 241 builtin/am.c if (lstat(state->dir, &st) < 0 || !S_ISDIR(st.st_mode)) S_ISDIR 3218 builtin/apply.c if (!S_ISDIR(st->st_mode)) S_ISDIR 3564 builtin/apply.c if (S_ISDIR(nst.st_mode) || ok_if_exists) S_ISDIR 4103 builtin/apply.c if (!lstat(path, &st) && S_ISDIR(st.st_mode)) S_ISDIR 4154 builtin/apply.c if (!lstat(path, &st) && (!S_ISDIR(st.st_mode) || !rmdir(path))) S_ISDIR 73 builtin/checkout.c if (S_ISDIR(mode)) S_ISDIR 222 builtin/clean.c else if (S_ISDIR(st.st_mode)) { S_ISDIR 973 builtin/clean.c if (S_ISDIR(st.st_mode) && !remove_directories && S_ISDIR 1000 builtin/clean.c if (S_ISDIR(st.st_mode)) { S_ISDIR 115 builtin/clone.c if (S_ISDIR(st.st_mode) && is_git_directory(path->buf)) { S_ISDIR 376 builtin/clone.c else if (!S_ISDIR(buf.st_mode)) S_ISDIR 394 builtin/clone.c if (S_ISDIR(buf.st_mode)) { S_ISDIR 433 builtin/grep.c else if (S_ISDIR(entry.mode)) { S_ISDIR 76 builtin/init-db.c if (S_ISDIR(st_template.st_mode)) { S_ISDIR 372 builtin/init-db.c else if (S_ISDIR(st.st_mode)) S_ISDIR 502 builtin/log.c printf("%s%s\n", pathname, S_ISDIR(mode) ? "/" : ""); S_ISDIR 144 builtin/ls-files.c S_ISDIR(ce->ce_mode) || S_ISGITLINK(ce->ce_mode))) S_ISDIR 82 builtin/ls-tree.c } else if (S_ISDIR(mode)) { S_ISDIR 310 builtin/mailsplit.c if (S_ISDIR(argstat.st_mode)) S_ISDIR 208 builtin/merge-tree.c if (p->mode && S_ISDIR(p->mode)) S_ISDIR 216 builtin/merge-tree.c #define ENTRY_SHA1(e) (((e)->mode && S_ISDIR((e)->mode)) ? (e)->sha1 : NULL) S_ISDIR 259 builtin/merge-tree.c if (!n[i].mode || S_ISDIR(n[i].mode)) S_ISDIR 268 builtin/merge-tree.c if (n[2].mode && !S_ISDIR(n[2].mode)) S_ISDIR 270 builtin/merge-tree.c if (n[1].mode && !S_ISDIR(n[1].mode)) S_ISDIR 272 builtin/merge-tree.c if (n[0].mode && !S_ISDIR(n[0].mode)) S_ISDIR 317 builtin/merge-tree.c if (entry[2].sha1 && !S_ISDIR(entry[2].mode)) { S_ISDIR 146 builtin/mv.c S_ISDIR(st.st_mode)) { S_ISDIR 170 builtin/mv.c } else if ((src_is_dir = S_ISDIR(st.st_mode)) S_ISDIR 1193 builtin/pack-objects.c if (S_ISDIR(entry.mode)) { S_ISDIR 88 builtin/reflog.c (S_ISDIR(entry.mode) && !tree_is_complete(entry.sha1))) { S_ISDIR 159 builtin/rm.c else if (S_ISDIR(st.st_mode)) { S_ISDIR 378 builtin/update-index.c if (S_ISDIR(st.st_mode)) S_ISDIR 664 cache-tree.c if (!S_ISDIR(entry.mode)) S_ISDIR 250 cache.h if (S_ISDIR(mode) || S_ISGITLINK(mode)) S_ISDIR 273 cache.h else if (S_ISDIR(ce_mode) || S_ISGITLINK(ce_mode)) S_ISDIR 286 cache.h if (S_ISDIR(mode)) S_ISDIR 378 cache.h return S_ISDIR(mode) ? OBJ_TREE : S_ISDIR 18 combine-diff.c if (!S_ISDIR(one->mode) && !S_ISDIR(two->mode)) S_ISDIR 1017 combine-diff.c } else if (S_ISDIR(st.st_mode)) { S_ISDIR 30 compat/fopen.c if (S_ISDIR(st.st_mode)) { S_ISDIR 10 compat/stat.c if (S_ISDIR(native_mode)) S_ISDIR 2078 config.c if (errno == ENODEV && S_ISDIR(st.st_mode)) S_ISDIR 38 diff-lib.c if (S_ISDIR(st->st_mode)) { S_ISDIR 100 diff-no-index.c if (mode1 && mode2 && S_ISDIR(mode1) != S_ISDIR(mode2)) { S_ISDIR 103 diff-no-index.c if (S_ISDIR(mode1)) { S_ISDIR 122 diff-no-index.c if (S_ISDIR(mode1) || S_ISDIR(mode2)) { S_ISDIR 2749 diff.c if (S_ISDIR(s->mode)) S_ISDIR 4168 diff.c if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) || S_ISDIR 4169 diff.c (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode))) S_ISDIR 4181 diff.c if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) || S_ISDIR 4182 diff.c (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode))) S_ISDIR 4194 diff.c if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) || S_ISDIR 4195 diff.c (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode))) S_ISDIR 4462 diff.c if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) || S_ISDIR 4463 diff.c (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode))) S_ISDIR 1424 dir.c if (S_ISDIR(st.st_mode)) S_ISDIR 2143 dir.c } else if (S_ISDIR(st.st_mode)) { S_ISDIR 290 dir.h S_ISDIR(ce->ce_mode) || S_ISGITLINK(ce->ce_mode)); S_ISDIR 65 entry.c if (S_ISDIR(st.st_mode)) S_ISDIR 279 entry.c if (S_ISDIR(st.st_mode)) { S_ISDIR 1450 fast-import.c if (S_ISDIR(root->versions[0].mode) && le && le->pack_id == pack_id) { S_ISDIR 1481 fast-import.c if (!S_ISDIR(mode)) S_ISDIR 1506 fast-import.c if (!*slash1 && !S_ISDIR(mode) && subtree) S_ISDIR 1516 fast-import.c if (!S_ISDIR(mode) S_ISDIR 1539 fast-import.c if (S_ISDIR(e->versions[0].mode)) S_ISDIR 1545 fast-import.c if (!S_ISDIR(e->versions[1].mode)) { S_ISDIR 1605 fast-import.c if (*slash1 && !S_ISDIR(e->versions[1].mode)) S_ISDIR 1613 fast-import.c if (!*slash1 || !S_ISDIR(e->versions[1].mode)) S_ISDIR 1674 fast-import.c if (!S_ISDIR(e->versions[1].mode)) S_ISDIR 2221 fast-import.c } else if (S_ISDIR(e->versions[1].mode)) { S_ISDIR 2345 fast-import.c if (S_ISDIR(mode) && !hashcmp(sha1, EMPTY_TREE_SHA1_BIN) && *p) { S_ISDIR 2364 fast-import.c if (S_ISDIR(mode)) S_ISDIR 2374 fast-import.c enum object_type expected = S_ISDIR(mode) ? S_ISDIR 2380 fast-import.c S_ISDIR(mode) ? "Tree" : "Blob", S_ISDIR 3056 fast-import.c S_ISDIR(mode) ? tree_type : S_ISDIR 3109 fast-import.c if (S_ISDIR(leaf.versions[1].mode)) S_ISDIR 313 fsck.c if (S_ISDIR(entry.mode)) S_ISDIR 420 fsck.c if (!c1 && S_ISDIR(mode1)) S_ISDIR 422 fsck.c if (!c2 && S_ISDIR(mode2)) S_ISDIR 113 list-objects.c if (S_ISDIR(entry.mode)) S_ISDIR 9 match-trees.c if (S_ISDIR(mode)) S_ISDIR 22 match-trees.c if (S_ISDIR(mode1) != S_ISDIR(mode2)) S_ISDIR 36 match-trees.c if (S_ISDIR(mode1) != S_ISDIR(mode2)) S_ISDIR 41 match-trees.c else if (S_ISDIR(mode1)) S_ISDIR 139 match-trees.c if (!S_ISDIR(mode)) S_ISDIR 199 match-trees.c if (!S_ISDIR(mode)) S_ISDIR 302 match-trees.c S_ISDIR(mode1)) S_ISDIR 307 match-trees.c S_ISDIR(mode2)) S_ISDIR 286 merge-recursive.c if (S_ISDIR(mode)) S_ISDIR 292 merge-recursive.c return (S_ISDIR(mode) ? READ_TREE_RECURSIVE : 0); S_ISDIR 652 merge-recursive.c return check_working_copy && !lstat(path, &st) && S_ISDIR(st.st_mode); S_ISDIR 451 notes.c if (!S_ISDIR(entry.mode) || path_len != 2) S_ISDIR 441 path.c (S_ISDIR(st.st_mode) && is_git_directory(used_path)))) { S_ISDIR 505 path.c if (S_ISDIR(old_mode)) { S_ISDIR 256 read-cache.c if (!S_ISDIR(st->st_mode)) S_ISDIR 414 read-cache.c if (!c1 && S_ISDIR(mode1)) S_ISDIR 416 read-cache.c if (!c2 && S_ISDIR(mode2)) S_ISDIR 444 read-cache.c if (!c1 && S_ISDIR(mode1)) S_ISDIR 447 read-cache.c if (!c2 && S_ISDIR(mode2)) S_ISDIR 646 read-cache.c if (!S_ISREG(st_mode) && !S_ISLNK(st_mode) && !S_ISDIR(st_mode)) S_ISDIR 650 read-cache.c if (S_ISDIR(st_mode)) { S_ISDIR 1389 refs.c } else if (S_ISDIR(st.st_mode)) { S_ISDIR 1681 refs.c if (S_ISDIR(st.st_mode)) { S_ISDIR 3874 refs.c if (S_ISDIR(st.st_mode)) { S_ISDIR 137 sha1_file.c if (!S_ISDIR(st.st_mode)) S_ISDIR 141 sha1_file.c !stat(path, &st) && S_ISDIR(st.st_mode)) S_ISDIR 144 symlinks.c } else if (S_ISDIR(st.st_mode)) { S_ISDIR 188 tree-diff.c isdir = S_ISDIR(mode); S_ISDIR 200 tree-diff.c isdir = S_ISDIR(mode); S_ISDIR 388 tree-walk.c if (S_ISDIR(entry[i].mode)) S_ISDIR 448 tree-walk.c if (!S_ISDIR(*mode)) S_ISDIR 610 tree-walk.c if (S_ISDIR(*mode)) { S_ISDIR 742 tree-walk.c if (!S_ISDIR(entry->mode) && !S_ISGITLINK(entry->mode)) S_ISDIR 885 tree-walk.c !!S_ISDIR(entry->mode), S_ISDIR 914 tree-walk.c !!S_ISDIR(entry->mode), S_ISDIR 935 tree-walk.c if (ps->recursive && S_ISDIR(entry->mode)) S_ISDIR 982 tree-walk.c if (ps->recursive && S_ISDIR(entry->mode)) S_ISDIR 1043 tree-walk.c if (S_ISDIR(entry->mode) && S_ISDIR 17 tree.c if (S_ISDIR(mode)) S_ISDIR 89 tree.c if (S_ISDIR(entry.mode)) S_ISDIR 804 unpack-trees.c n == 1 && dirmask == 1 && S_ISDIR(names->mode)) { S_ISDIR 1408 unpack-trees.c if (S_ISDIR(st->st_mode)) { S_ISDIR 46 walker.c if (S_ISDIR(entry.mode)) {