1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 14:57:52 +01:00
git/pull.h
Junio C Hamano 4a62b61939 [PATCH] Handle deltified object correctly in git-*-pull family.
When a remote repository is deltified, we need to get the
objects that a deltified object we want to obtain is based upon.
The initial parts of each retrieved SHA1 file is inflated and
inspected to see if it is deltified, and its base object is
asked from the remote side when it is.  Since this partial
inflation and inspection has a small performance hit, it can
optionally be skipped by giving -d flag to git-*-pull commands.
This flag should be used only when the remote repository is
known to have no deltified objects.

Rsync transport does not have this problem since it fetches
everything the remote side has.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-02 15:48:33 -07:00

27 lines
608 B
C

#ifndef PULL_H
#define PULL_H
/** To be provided by the particular implementation. **/
extern int fetch(unsigned char *sha1);
/** Set to fetch the target tree. */
extern int get_tree;
/** Set to fetch the commit history. */
extern int get_history;
/** Set to fetch the trees in the commit history. **/
extern int get_all;
/* Set to zero to skip the check for delta object base. */
extern int get_delta;
/* Set to be verbose */
extern int get_verbosely;
/* Report what we got under get_verbosely */
extern void pull_say(const char *, const char *);
extern int pull(char *target);
#endif /* PULL_H */