Staging
v0.5.2
https://github.com/git/git
Revision 62e4f26f3d55bd66989d9b953988de18ba393417 authored by Jakub Narebski on 07 January 2007, 01:52:23 UTC, committed by Junio C Hamano on 07 January 2007, 06:52:49 UTC
$from_id, $to_id variables should be local per PATCH.

Fix error in git_patchset_body for file creation (deletion) patches,
where instead of /dev/null as from-file (to-file) diff header line, it
had link to previous file with current file name.  This error occured
only if there was another patch before file creation (deletion) patch.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent fffe694
Raw File
Tip revision: 62e4f26f3d55bd66989d9b953988de18ba393417 authored by Jakub Narebski on 07 January 2007, 01:52:23 UTC
gitweb: Fix error in git_patchest_body for file creation/deletion patch
Tip revision: 62e4f26
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