Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
git
提交
27be481f
G
git
项目概览
李少辉-开发者
/
git
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
git
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
27be481f
编写于
4月 08, 2007
作者:
J
Junio C Hamano
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'js/fetch-progress'
* js/fetch-progress: git-fetch: add --quiet
上级
d39d10d7
a858c006
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
4 deletion
+10
-4
git-fetch.sh
git-fetch.sh
+10
-4
未找到文件。
git-fetch.sh
浏览文件 @
27be481f
...
...
@@ -26,6 +26,7 @@ keep=
shallow_depth
=
no_progress
=
test
-t
1
||
no_progress
=
--no-progress
quiet
=
while case
"$#"
in
0
)
break
;;
esac
do
case
"
$1
"
in
...
...
@@ -56,6 +57,9 @@ do
--update-head-o
|
--update-head-ok
)
update_head_ok
=
t
;;
-q
|
--q
|
--qu
|
--qui
|
--quie
|
--quiet
)
quiet
=
--quiet
;;
-v
|
--verbose
)
verbose
=
Yes
;;
...
...
@@ -173,8 +177,8 @@ fetch_all_at_once () {
git-bundle unbundle
"
$remote
"
$rref
||
echo
failed
"
$remote
"
else
git-fetch-pack
--thin
$exec
$keep
$shallow_depth
$no_progress
\
"
$remote
"
$rref
||
git-fetch-pack
--thin
$exec
$keep
$shallow_depth
\
$quiet
$no_progress
"
$remote
"
$rref
||
echo
failed
"
$remote
"
fi
)
|
...
...
@@ -248,7 +252,8 @@ fetch_per_ref () {
expr
"z
$head
"
:
"z
$_x40
\$
"
>
/dev/null
||
die
"No such ref
$remote_name
at
$remote
"
echo
>
&2
"Fetching
$remote_name
from
$remote
using
$proto
"
git-http-fetch
-v
-a
"
$head
"
"
$remote
"
||
exit
case
"
$quiet
"
in
''
)
v
=
-v
;;
*
)
v
=
;;
esac
git-http-fetch
$v
-a
"
$head
"
"
$remote
"
||
exit
;;
rsync://
*
)
test
-n
"
$shallow_depth
"
&&
...
...
@@ -257,8 +262,9 @@ fetch_per_ref () {
rsync
-L
-q
"
$remote
/
$remote_name
"
"
$TMP_HEAD
"
||
exit
1
head
=
$(
git-rev-parse
--verify
TMP_HEAD
)
rm
-f
"
$TMP_HEAD
"
case
"
$quiet
"
in
''
)
v
=
-v
;;
*
)
v
=
;;
esac
test
"
$rsync_slurped_objects
"
||
{
rsync
-av
--ignore-existing
--exclude
info
\
rsync
-a
$
v
--ignore-existing
--exclude
info
\
"
$remote
/objects/"
"
$GIT_OBJECT_DIRECTORY
/"
||
exit
# Look at objects/info/alternates for rsync -- http will
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录