Staging
v0.5.2
https://github.com/git/git
Revision 18023c20656265364d4d1805f435e8420ab70687 authored by Horst H. von Brand on 28 March 2008, 14:09:04 UTC, committed by Junio C Hamano on 21 May 2008, 20:05:50 UTC
Need to quote all special characters, not just the first one

Signed-off-by: Horst H. von Brand <vonbrand@inf.utfsm.cl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e4d594c
Raw File
Tip revision: 18023c20656265364d4d1805f435e8420ab70687 authored by Horst H. von Brand on 28 March 2008, 14:09:04 UTC
Fix recipient santitization
Tip revision: 18023c2
bundle.h
#ifndef BUNDLE_H
#define BUNDLE_H

struct ref_list {
	unsigned int nr, alloc;
	struct ref_list_entry {
		unsigned char sha1[20];
		char *name;
	} *list;
};

struct bundle_header {
	struct ref_list prerequisites;
	struct ref_list references;
};

int read_bundle_header(const char *path, struct bundle_header *header);
int create_bundle(struct bundle_header *header, const char *path,
		int argc, const char **argv);
int verify_bundle(struct bundle_header *header, int verbose);
int unbundle(struct bundle_header *header, int bundle_fd);
int list_bundle_refs(struct bundle_header *header,
		int argc, const char **argv);

#endif
back to top