[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>
This commit is contained in:

committed by
Linus Torvalds

parent
3b42a63cb5
commit
4a62b61939
@ -9,7 +9,7 @@ git-http-pull - Downloads a remote GIT repository via HTTP
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
'git-http-pull' [-c] [-t] [-a] [-v] commit-id url
|
||||
'git-http-pull' [-c] [-t] [-a] [-v] [-d] commit-id url
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
@ -21,6 +21,10 @@ Downloads a remote GIT repository via HTTP.
|
||||
Get trees associated with the commit objects.
|
||||
-a::
|
||||
Get all the objects.
|
||||
-d::
|
||||
Do not check for delta base objects (use this option
|
||||
only when you know the remote repository is not
|
||||
deltified).
|
||||
-v::
|
||||
Report what is downloaded.
|
||||
|
||||
|
@ -9,7 +9,7 @@ git-local-pull - Duplicates another GIT repository on a local system
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
'git-local-pull' [-c] [-t] [-a] [-l] [-s] [-n] [-v] commit-id path
|
||||
'git-local-pull' [-c] [-t] [-a] [-l] [-s] [-n] [-v] [-d] commit-id path
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
@ -23,6 +23,10 @@ OPTIONS
|
||||
Get trees associated with the commit objects.
|
||||
-a::
|
||||
Get all the objects.
|
||||
-d::
|
||||
Do not check for delta base objects (use this option
|
||||
only when you know the remote repository is not
|
||||
deltified).
|
||||
-v::
|
||||
Report what is downloaded.
|
||||
|
||||
|
@ -10,7 +10,7 @@ git-rpull - Pulls from a remote repository over ssh connection
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
'git-rpull' [-c] [-t] [-a] [-v] commit-id url
|
||||
'git-rpull' [-c] [-t] [-a] [-d] [-v] commit-id url
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
@ -25,6 +25,10 @@ OPTIONS
|
||||
Get trees associated with the commit objects.
|
||||
-a::
|
||||
Get all the objects.
|
||||
-d::
|
||||
Do not check for delta base objects (use this option
|
||||
only when you know the remote repository is not
|
||||
deltified).
|
||||
-v::
|
||||
Report what is downloaded.
|
||||
|
||||
|
Reference in New Issue
Block a user