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:
Tom Prince 2006-01-10 18:50:19 -07:00 коммит произвёл Junio C Hamano
Родитель cfa6d70bd4
Коммит 0f76f52621
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -24,6 +24,9 @@
flag lets all tags and their associated objects be
downloaded.
-k, \--keep::
Keep downloaded pack.
-u, \--update-head-ok::
By default `git-fetch` refuses to update the head which
corresponds to the current branch. This flag disables the

Просмотреть файл

@ -40,6 +40,9 @@ do
-v|--verbose)
verbose=Yes
;;
-k|--k|--ke|--kee|--keep)
keep=--keep
;;
-*)
usage
;;
@ -309,7 +312,7 @@ fetch_main () {
( : subshell because we muck with IFS
IFS=" $LF"
(
git-fetch-pack "$remote" $rref || echo failed "$remote"
git-fetch-pack $keep "$remote" $rref || echo failed "$remote"
) |
while read sha1 remote_name
do