Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
git
提交
cd3c095c
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,发现更多精彩内容 >>
提交
cd3c095c
编写于
9月 20, 2009
作者:
J
Junio C Hamano
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: move convenience regexp to match object names to test-lib.sh
Signed-off-by:
N
Junio C Hamano
<
gitster@pobox.com
>
上级
902f2353
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
6 addition
and
18 deletion
+6
-18
t/diff-lib.sh
t/diff-lib.sh
+0
-2
t/t1000-read-tree-m-3way.sh
t/t1000-read-tree-m-3way.sh
+0
-3
t/t1001-read-tree-m-2way.sh
t/t1001-read-tree-m-2way.sh
+0
-2
t/t1002-read-tree-m-u-2way.sh
t/t1002-read-tree-m-u-2way.sh
+0
-2
t/t3100-ls-tree-restrict.sh
t/t3100-ls-tree-restrict.sh
+0
-2
t/t3101-ls-tree-dirname.sh
t/t3101-ls-tree-dirname.sh
+0
-2
t/t4006-diff-mode.sh
t/t4006-diff-mode.sh
+0
-2
t/t6012-rev-list-simplify.sh
t/t6012-rev-list-simplify.sh
+0
-3
t/test-lib.sh
t/test-lib.sh
+6
-0
未找到文件。
t/diff-lib.sh
浏览文件 @
cd3c095c
:
_x40
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40
"
sanitize_diff_raw
=
'/^:/s/ '
"
$_x40
"
' '
"
$_x40
"
' \([A-Z]\)[0-9]* / X X \1# /'
compare_diff_raw
()
{
# When heuristics are improved, the score numbers would change.
...
...
t/t1000-read-tree-m-3way.sh
浏览文件 @
cd3c095c
...
...
@@ -126,9 +126,6 @@ cat >expected <<\EOF
100644 X 0 Z/NN
EOF
_x40
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40
"
check_result
()
{
git ls-files
--stage
|
sed
-e
's/ '
"
$_x40
"
' / X /'
>
current
&&
test_cmp expected current
...
...
t/t1001-read-tree-m-2way.sh
浏览文件 @
cd3c095c
...
...
@@ -26,8 +26,6 @@ read_tree_twoway () {
git read-tree
-m
"
$1
"
"
$2
"
&&
git ls-files
--stage
}
_x40
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40
"
compare_change
()
{
sed
-n
>
current
\
-e
'/^--- /d; /^+++ /d; /^@@ /d;'
\
...
...
t/t1002-read-tree-m-u-2way.sh
浏览文件 @
cd3c095c
...
...
@@ -10,8 +10,6 @@ This is identical to t1001, but uses -u to update the work tree as well.
'
.
./test-lib.sh
_x40
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40
"
compare_change
()
{
sed
>
current
\
-e
'1{/^diff --git /d;}'
\
...
...
t/t3100-ls-tree-restrict.sh
浏览文件 @
cd3c095c
...
...
@@ -43,8 +43,6 @@ test_expect_success \
tree=`git write-tree` &&
echo $tree'
_x40
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40
"
test_output
()
{
sed
-e
"s/
$_x40
/ X /"
<current
>
check
test_cmp expected check
...
...
t/t3101-ls-tree-dirname.sh
浏览文件 @
cd3c095c
...
...
@@ -39,8 +39,6 @@ test_expect_success \
tree=`git write-tree` &&
echo $tree'
_x05
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x05$_x05$_x05$_x05$_x05$_x05$_x05$_x05
"
test_output
()
{
sed
-e
"s/
$_x40
/ X /"
<current
>
check
test_cmp expected check
...
...
t/t4006-diff-mode.sh
浏览文件 @
cd3c095c
...
...
@@ -20,8 +20,6 @@ test_expect_success \
'test_chmod +x rezrov &&
git diff-index $tree >current'
_x40
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40
"
sed
-e
's/\(:100644 100755\) \('
"
$_x40
"
'\) \2 /\1 X X /'
<current
>
check
echo
":100644 100755 X X M rezrov"
>
expected
...
...
t/t6012-rev-list-simplify.sh
浏览文件 @
cd3c095c
...
...
@@ -8,9 +8,6 @@ note () {
git tag
"
$1
"
}
_x40
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x40$_x40$_x40$_x40$_x40$_x40$_x40$_x40
"
unnote
()
{
git name-rev
--tags
--stdin
|
sed
-e
"s|
$_x40
(tags/
\(
[^)]*
\)
) |
\1
|g"
}
...
...
t/test-lib.sh
浏览文件 @
cd3c095c
...
...
@@ -74,6 +74,12 @@ case $(echo $GIT_TRACE |tr "[A-Z]" "[a-z]") in
;;
esac
# Convenience
#
# A regexp to match 5 and 40 hexdigits
_x05
=
'[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]'
_x40
=
"
$_x05$_x05$_x05$_x05$_x05$_x05$_x05$_x05
"
# Each test should start with something like this, after copyright notices:
#
# test_description='Description of this test...
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录