Staging
v0.5.1
https://github.com/git/git
Revision f8d6957628e222bb9f2090c4900f9994559532e1 authored by Johannes Schindelin on 03 July 2007, 20:28:24 UTC, committed by Junio C Hamano on 03 July 2007, 20:56:07 UTC
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3cb5673
Raw File
Tip revision: f8d6957628e222bb9f2090c4900f9994559532e1 authored by Johannes Schindelin on 03 July 2007, 20:28:24 UTC
glossary: add 'reflog'
Tip revision: f8d6957
path-list.h
#ifndef PATH_LIST_H
#define PATH_LIST_H

struct path_list_item {
	char *path;
	void *util;
};
struct path_list
{
	struct path_list_item *items;
	unsigned int nr, alloc;
	unsigned int strdup_paths:1;
};

void print_path_list(const char *text, const struct path_list *p);

int path_list_has_path(const struct path_list *list, const char *path);
void path_list_clear(struct path_list *list, int free_items);
struct path_list_item *path_list_insert(const char *path, struct path_list *list);
struct path_list_item *path_list_lookup(const char *path, struct path_list *list);

#endif /* PATH_LIST_H */
back to top