Add --keep option to keep downloaded packs to git-fetch.
Signed-off-by: Tom Prince <tom.prince@ualberta.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
cfa6d70bd4
commit
0f76f52621
@ -24,6 +24,9 @@
|
|||||||
flag lets all tags and their associated objects be
|
flag lets all tags and their associated objects be
|
||||||
downloaded.
|
downloaded.
|
||||||
|
|
||||||
|
-k, \--keep::
|
||||||
|
Keep downloaded pack.
|
||||||
|
|
||||||
-u, \--update-head-ok::
|
-u, \--update-head-ok::
|
||||||
By default `git-fetch` refuses to update the head which
|
By default `git-fetch` refuses to update the head which
|
||||||
corresponds to the current branch. This flag disables the
|
corresponds to the current branch. This flag disables the
|
||||||
|
@ -40,6 +40,9 @@ do
|
|||||||
-v|--verbose)
|
-v|--verbose)
|
||||||
verbose=Yes
|
verbose=Yes
|
||||||
;;
|
;;
|
||||||
|
-k|--k|--ke|--kee|--keep)
|
||||||
|
keep=--keep
|
||||||
|
;;
|
||||||
-*)
|
-*)
|
||||||
usage
|
usage
|
||||||
;;
|
;;
|
||||||
@ -309,7 +312,7 @@ fetch_main () {
|
|||||||
( : subshell because we muck with IFS
|
( : subshell because we muck with IFS
|
||||||
IFS=" $LF"
|
IFS=" $LF"
|
||||||
(
|
(
|
||||||
git-fetch-pack "$remote" $rref || echo failed "$remote"
|
git-fetch-pack $keep "$remote" $rref || echo failed "$remote"
|
||||||
) |
|
) |
|
||||||
while read sha1 remote_name
|
while read sha1 remote_name
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user