submodule        1122 refs.c         static struct ref_cache *create_ref_cache(const char *submodule)
submodule        1126 refs.c         	if (!submodule)
submodule        1127 refs.c         		submodule = "";
submodule        1128 refs.c         	len = strlen(submodule) + 1;
submodule        1130 refs.c         	memcpy(refs->name, submodule, len);
submodule        1140 refs.c         static struct ref_cache *get_ref_cache(const char *submodule)
submodule        1144 refs.c         	if (!submodule || !*submodule)
submodule        1148 refs.c         		if (!strcmp(submodule, refs->name))
submodule        1151 refs.c         	refs = create_ref_cache(submodule);
submodule        1525 refs.c         	char *submodule;
submodule        1532 refs.c         	submodule = xstrndup(path, len);
submodule        1533 refs.c         	refs = get_ref_cache(submodule);
submodule        1534 refs.c         	free(submodule);
submodule        2068 refs.c         static int do_head_ref(const char *submodule, each_ref_fn fn, void *cb_data)
submodule        2073 refs.c         	if (submodule) {
submodule        2074 refs.c         		if (resolve_gitlink_ref(submodule, "HEAD", oid.hash) == 0)
submodule        2091 refs.c         int head_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data)
submodule        2093 refs.c         	return do_head_ref(submodule, fn, cb_data);
submodule        2101 refs.c         int for_each_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data)
submodule        2103 refs.c         	return do_for_each_ref(get_ref_cache(submodule), "", fn, 0, 0, cb_data);
submodule        2111 refs.c         int for_each_ref_in_submodule(const char *submodule, const char *prefix,
submodule        2114 refs.c         	return do_for_each_ref(get_ref_cache(submodule), prefix, fn, strlen(prefix), 0, cb_data);
submodule        2122 refs.c         int for_each_tag_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data)
submodule        2124 refs.c         	return for_each_ref_in_submodule(submodule, "refs/tags/", fn, cb_data);
submodule        2132 refs.c         int for_each_branch_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data)
submodule        2134 refs.c         	return for_each_ref_in_submodule(submodule, "refs/heads/", fn, cb_data);
submodule        2142 refs.c         int for_each_remote_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data)
submodule        2144 refs.c         	return for_each_ref_in_submodule(submodule, "refs/remotes/", fn, cb_data);
submodule         183 refs.h         extern int head_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data);
submodule         184 refs.h         extern int for_each_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data);
submodule         185 refs.h         extern int for_each_ref_in_submodule(const char *submodule, const char *prefix,
submodule         187 refs.h         extern int for_each_tag_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data);
submodule         188 refs.h         extern int for_each_branch_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data);
submodule         189 refs.h         extern int for_each_remote_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data);
submodule        1265 revision.c     static void handle_refs(const char *submodule, struct rev_info *revs, unsigned flags,
submodule        1270 revision.c     	for_each(submodule, handle_one_ref, &cb);
submodule        2083 revision.c     static int for_each_bisect_ref(const char *submodule, each_ref_fn fn, void *cb_data, const char *term) {
submodule        2087 revision.c     	status = for_each_ref_in_submodule(submodule, bisect_refs.buf, fn, cb_data);
submodule        2092 revision.c     static int for_each_bad_bisect_ref(const char *submodule, each_ref_fn fn, void *cb_data)
submodule        2094 revision.c     	return for_each_bisect_ref(submodule, fn, cb_data, term_bad);
submodule        2097 revision.c     static int for_each_good_bisect_ref(const char *submodule, each_ref_fn fn, void *cb_data)
submodule        2099 revision.c     	return for_each_bisect_ref(submodule, fn, cb_data, term_good);
submodule        2102 revision.c     static int handle_revision_pseudo_opt(const char *submodule,
submodule        2121 revision.c     		handle_refs(submodule, revs, *flags, for_each_ref_submodule);
submodule        2122 revision.c     		handle_refs(submodule, revs, *flags, head_ref_submodule);
submodule        2125 revision.c     		handle_refs(submodule, revs, *flags, for_each_branch_ref_submodule);
submodule        2129 revision.c     		handle_refs(submodule, revs, *flags, for_each_bad_bisect_ref);
submodule        2130 revision.c     		handle_refs(submodule, revs, *flags ^ (UNINTERESTING | BOTTOM), for_each_good_bisect_ref);
submodule        2133 revision.c     		handle_refs(submodule, revs, *flags, for_each_tag_ref_submodule);
submodule        2136 revision.c     		handle_refs(submodule, revs, *flags, for_each_remote_ref_submodule);
submodule        2216 revision.c     	const char *submodule = NULL;
submodule        2220 revision.c     		submodule = opt->submodule;
submodule        2251 revision.c     			opts = handle_revision_pseudo_opt(submodule,
submodule         232 revision.h     	const char *submodule;
submodule          25 submodule-config.c 	struct submodule *config;
submodule          90 submodule-config.c 			   struct submodule *submodule)
submodule          92 submodule-config.c 	unsigned int hash = hash_sha1_string(submodule->gitmodules_sha1,
submodule          93 submodule-config.c 					     submodule->path);
submodule          96 submodule-config.c 	e->config = submodule;
submodule         101 submodule-config.c 			      struct submodule *submodule)
submodule         103 submodule-config.c 	unsigned int hash = hash_sha1_string(submodule->gitmodules_sha1,
submodule         104 submodule-config.c 					     submodule->path);
submodule         108 submodule-config.c 	e.config = submodule;
submodule         114 submodule-config.c 		      struct submodule *submodule)
submodule         116 submodule-config.c 	unsigned int hash = hash_sha1_string(submodule->gitmodules_sha1,
submodule         117 submodule-config.c 					     submodule->name);
submodule         120 submodule-config.c 	e->config = submodule;
submodule         124 submodule-config.c static const struct submodule *cache_lookup_path(struct submodule_cache *cache,
submodule         130 submodule-config.c 	struct submodule key_config;
submodule         144 submodule-config.c static struct submodule *cache_lookup_name(struct submodule_cache *cache,
submodule         150 submodule-config.c 	struct submodule key_config;
submodule         180 submodule-config.c static struct submodule *lookup_or_create_by_name(struct submodule_cache *cache,
submodule         183 submodule-config.c 	struct submodule *submodule;
submodule         186 submodule-config.c 	submodule = cache_lookup_name(cache, gitmodules_sha1, name);
submodule         187 submodule-config.c 	if (submodule)
submodule         188 submodule-config.c 		return submodule;
submodule         190 submodule-config.c 	submodule = xmalloc(sizeof(*submodule));
submodule         193 submodule-config.c 	submodule->name = strbuf_detach(&name_buf, NULL);
submodule         195 submodule-config.c 	submodule->path = NULL;
submodule         196 submodule-config.c 	submodule->url = NULL;
submodule         197 submodule-config.c 	submodule->fetch_recurse = RECURSE_SUBMODULES_NONE;
submodule         198 submodule-config.c 	submodule->ignore = NULL;
submodule         200 submodule-config.c 	hashcpy(submodule->gitmodules_sha1, gitmodules_sha1);
submodule         202 submodule-config.c 	cache_add(cache, submodule);
submodule         204 submodule-config.c 	return submodule;
submodule         252 submodule-config.c 	struct submodule *submodule;
submodule         260 submodule-config.c 	submodule = lookup_or_create_by_name(me->cache, me->gitmodules_sha1,
submodule         269 submodule-config.c 		if (!me->overwrite && submodule->path != NULL) {
submodule         270 submodule-config.c 			warn_multiple_config(me->commit_sha1, submodule->name,
submodule         275 submodule-config.c 		if (submodule->path)
submodule         276 submodule-config.c 			cache_remove_path(me->cache, submodule);
submodule         277 submodule-config.c 		free((void *) submodule->path);
submodule         279 submodule-config.c 		submodule->path = strbuf_detach(&path, NULL);
submodule         280 submodule-config.c 		cache_put_path(me->cache, submodule);
submodule         285 submodule-config.c 		    submodule->fetch_recurse != RECURSE_SUBMODULES_NONE) {
submodule         286 submodule-config.c 			warn_multiple_config(me->commit_sha1, submodule->name,
submodule         291 submodule-config.c 		submodule->fetch_recurse = parse_fetch_recurse(var, value,
submodule         295 submodule-config.c 		if (!me->overwrite && submodule->ignore != NULL) {
submodule         296 submodule-config.c 			warn_multiple_config(me->commit_sha1, submodule->name,
submodule         311 submodule-config.c 		free((void *) submodule->ignore);
submodule         313 submodule-config.c 		submodule->ignore = strbuf_detach(&ignore, NULL);
submodule         320 submodule-config.c 		if (!me->overwrite && submodule->url != NULL) {
submodule         321 submodule-config.c 			warn_multiple_config(me->commit_sha1, submodule->name,
submodule         326 submodule-config.c 		free((void *) submodule->url);
submodule         328 submodule-config.c 		submodule->url = strbuf_detach(&url, NULL);
submodule         361 submodule-config.c static const struct submodule *config_from(struct submodule_cache *cache,
submodule         370 submodule-config.c 	const struct submodule *submodule = NULL;
submodule         394 submodule-config.c 		submodule = cache_lookup_name(cache, sha1, key);
submodule         397 submodule-config.c 		submodule = cache_lookup_path(cache, sha1, key);
submodule         400 submodule-config.c 	if (submodule)
submodule         401 submodule-config.c 		return submodule;
submodule         431 submodule-config.c static const struct submodule *config_from_path(struct submodule_cache *cache,
submodule         437 submodule-config.c static const struct submodule *config_from_name(struct submodule_cache *cache,
submodule         464 submodule-config.c const struct submodule *submodule_from_name(const unsigned char *commit_sha1,
submodule         471 submodule-config.c const struct submodule *submodule_from_path(const unsigned char *commit_sha1,
submodule          23 submodule-config.h const struct submodule *submodule_from_name(const unsigned char *commit_sha1,
submodule          25 submodule-config.h const struct submodule *submodule_from_path(const unsigned char *commit_sha1,
submodule          55 submodule.c    	const struct submodule *submodule;
submodule          63 submodule.c    	submodule = submodule_from_path(null_sha1, oldpath);
submodule          64 submodule.c    	if (!submodule || !submodule->name) {
submodule          69 submodule.c    	strbuf_addstr(&entry, submodule->name);
submodule          89 submodule.c    	const struct submodule *submodule;
submodule          97 submodule.c    	submodule = submodule_from_path(null_sha1, path);
submodule          98 submodule.c    	if (!submodule || !submodule->name) {
submodule         103 submodule.c    	strbuf_addstr(&sect, submodule->name);
submodule         158 submodule.c    	const struct submodule *submodule = submodule_from_path(null_sha1, path);
submodule         159 submodule.c    	if (submodule) {
submodule         160 submodule.c    		if (submodule->ignore)
submodule         161 submodule.c    			handle_ignore_submodules_arg(diffopt, submodule->ignore);
submodule         643 submodule.c    		const struct submodule *submodule;
submodule         648 submodule.c    		submodule = submodule_from_path(null_sha1, ce->name);
submodule         649 submodule.c    		if (!submodule)
submodule         650 submodule.c    			submodule = submodule_from_name(null_sha1, ce->name);
submodule         654 submodule.c    			if (submodule &&
submodule         655 submodule.c    			    submodule->fetch_recurse !=
submodule         657 submodule.c    				if (submodule->fetch_recurse ==
submodule         660 submodule.c    				if (submodule->fetch_recurse ==
submodule         878 submodule.c    	rev_opts.submodule = path;
submodule          44 test-submodule-config.c 		const struct submodule *submodule;
submodule          57 test-submodule-config.c 			submodule = submodule_from_name(commit_sha1, path_or_name);
submodule          59 test-submodule-config.c 			submodule = submodule_from_path(commit_sha1, path_or_name);
submodule          60 test-submodule-config.c 		if (!submodule)
submodule          65 test-submodule-config.c 					submodule->url, submodule->path);
submodule          68 test-submodule-config.c 					submodule->name, submodule->path);