Exemplo n.º 1
0
int for_each_replace_ref(each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(get_main_ref_store(),
			       git_replace_ref_base, fn,
			       strlen(git_replace_ref_base),
			       0, cb_data);
}
Exemplo n.º 2
0
Arquivo: refs.c Projeto: chidveer/git
int for_each_fullref_in(const char *prefix, each_ref_fn fn, void *cb_data, unsigned int broken)
{
	unsigned int flag = 0;

	if (broken)
		flag = DO_FOR_EACH_INCLUDE_BROKEN;
	return do_for_each_ref(NULL, prefix, fn, 0, flag, cb_data);
}
Exemplo n.º 3
0
Arquivo: refs.c Projeto: chidveer/git
int for_each_namespaced_ref(each_ref_fn fn, void *cb_data)
{
	struct strbuf buf = STRBUF_INIT;
	int ret;
	strbuf_addf(&buf, "%srefs/", get_git_namespace());
	ret = do_for_each_ref(NULL, buf.buf, fn, 0, 0, cb_data);
	strbuf_release(&buf);
	return ret;
}
Exemplo n.º 4
0
Arquivo: refs.c Projeto: ratnikov/git
int for_each_rawref(each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(NULL, "refs/", fn, 0,
			       DO_FOR_EACH_INCLUDE_BROKEN, cb_data);
}
Exemplo n.º 5
0
Arquivo: refs.c Projeto: ratnikov/git
int for_each_replace_ref(each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(NULL, "refs/replace/", fn, 13, 0, cb_data);
}
Exemplo n.º 6
0
Arquivo: refs.c Projeto: ratnikov/git
int for_each_ref_in_submodule(const char *submodule, const char *prefix,
		each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(submodule, prefix, fn, strlen(prefix), 0, cb_data);
}
Exemplo n.º 7
0
Arquivo: refs.c Projeto: ratnikov/git
int for_each_ref_in(const char *prefix, each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(NULL, prefix, fn, strlen(prefix), 0, cb_data);
}
Exemplo n.º 8
0
Arquivo: refs.c Projeto: ratnikov/git
int for_each_ref_submodule(const char *submodule, each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(submodule, "refs/", fn, 0, 0, cb_data);
}
Exemplo n.º 9
0
Arquivo: refs.c Projeto: ratnikov/git
int for_each_ref(each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(NULL, "refs/", fn, 0, 0, cb_data);
}
Exemplo n.º 10
0
Arquivo: refs.c Projeto: chidveer/git
int for_each_replace_ref(each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(NULL, git_replace_ref_base, fn,
			       strlen(git_replace_ref_base), 0, cb_data);
}
Exemplo n.º 11
0
int for_each_remote_ref(each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref("refs/remotes/", fn, 13, cb_data);
}
Exemplo n.º 12
0
int for_each_branch_ref(each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref("refs/heads/", fn, 11, cb_data);
}
Exemplo n.º 13
0
int for_each_tag_ref(each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref("refs/tags/", fn, 10, cb_data);
}
Exemplo n.º 14
0
int refs_for_each_rawref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(refs, "", fn, 0,
			       DO_FOR_EACH_INCLUDE_BROKEN, cb_data);
}
Exemplo n.º 15
0
int refs_for_each_ref_in(struct ref_store *refs, const char *prefix,
			 each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(refs, prefix, fn, strlen(prefix), 0, cb_data);
}
Exemplo n.º 16
0
int refs_for_each_ref(struct ref_store *refs, each_ref_fn fn, void *cb_data)
{
	return do_for_each_ref(refs, "", fn, 0, 0, cb_data);
}