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>
Tom Prince committed
Jan 10, 2006 at 18:50 UTC
0f76f52621a6d760127cf2a508e09287766219b6
2 files changed
+7
-1
Documentation/fetch-options.txt
+3
@@ -24,6 +24,9 @@
24
flag lets all tags and their associated objects be
25
downloaded.
26
27
+-k, \--keep::
28
+ Keep downloaded pack.
29
+
30
-u, \--update-head-ok::
31
By default `git-fetch` refuses to update the head which
32
corresponds to the current branch. This flag disables the
git-fetch.sh
+4
-1
@@ -40,6 +40,9 @@ do
40
-v|--verbose)
41
verbose=Yes
42
;;
43
+ -k|--k|--ke|--kee|--keep)
44
+ keep=--keep
45
+ ;;
46
-*)
47
usage
48
;;
@@ -309,7 +312,7 @@ fetch_main () {
312
( : subshell because we muck with IFS
313
IFS=" $LF"
314
(
312
- git-fetch-pack "$remote" $rref || echo failed "$remote"
315
+ git-fetch-pack $keep "$remote" $rref || echo failed "$remote"
316
) |
317
while read sha1 remote_name
318
do