Staging
v0.5.2
https://github.com/git/git
Revision 75bd7e374ef35265dfd7c3c1896f4fb91450e50d authored by Eric Wong on 05 November 2006, 05:51:10 UTC, committed by Junio C Hamano on 09 November 2006, 17:34:27 UTC
This is purely an aesthetic change, we already skip importing of
files that don't affect the subdirectory we import.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 916d081
Raw File
Tip revision: 75bd7e374ef35265dfd7c3c1896f4fb91450e50d authored by Eric Wong on 05 November 2006, 05:51:10 UTC
git-svn: avoid printing filenames of files we're not tracking
Tip revision: 75bd7e3
csum-file.h
#ifndef CSUM_FILE_H
#define CSUM_FILE_H

/* A SHA1-protected file */
struct sha1file {
	int fd, error;
	unsigned int offset, namelen;
	SHA_CTX ctx;
	char name[PATH_MAX];
	unsigned char buffer[8192];
};

extern struct sha1file *sha1fd(int fd, const char *name);
extern struct sha1file *sha1create(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
extern int sha1close(struct sha1file *, unsigned char *, int);
extern int sha1write(struct sha1file *, void *, unsigned int);
extern int sha1write_compressed(struct sha1file *, void *, unsigned int);

#endif
back to top