Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
git
提交
16befb8b
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,发现更多精彩内容 >>
提交
16befb8b
编写于
6月 08, 2007
作者:
J
Junio C Hamano
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Even more missing static
Signed-off-by:
N
Junio C Hamano
<
gitster@pobox.com
>
上级
fcd056a6
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
6 addition
and
32 deletion
+6
-32
builtin-stripspace.c
builtin-stripspace.c
+1
-1
builtin.h
builtin.h
+0
-1
commit.c
commit.c
+0
-9
commit.h
commit.h
+0
-2
diff.c
diff.c
+3
-1
diff.h
diff.h
+0
-2
quote.c
quote.c
+1
-13
quote.h
quote.h
+0
-2
upload-pack.c
upload-pack.c
+1
-1
未找到文件。
builtin-stripspace.c
浏览文件 @
16befb8b
...
...
@@ -26,7 +26,7 @@ static int cleanup(char *line)
return
1
;
}
void
stripspace
(
FILE
*
in
,
FILE
*
out
)
static
void
stripspace
(
FILE
*
in
,
FILE
*
out
)
{
int
empties
=
-
1
;
int
incomplete
=
0
;
...
...
builtin.h
浏览文件 @
16befb8b
...
...
@@ -7,7 +7,6 @@ extern const char git_version_string[];
extern
const
char
git_usage_string
[];
extern
void
help_unknown_cmd
(
const
char
*
cmd
);
extern
void
stripspace
(
FILE
*
in
,
FILE
*
out
);
extern
int
write_tree
(
unsigned
char
*
sha1
,
int
missing_ok
,
const
char
*
prefix
);
extern
void
prune_packed_objects
(
int
);
...
...
commit.c
浏览文件 @
16befb8b
...
...
@@ -1116,15 +1116,6 @@ struct commit *pop_commit(struct commit_list **stack)
return
item
;
}
int
count_parents
(
struct
commit
*
commit
)
{
int
count
;
struct
commit_list
*
parents
=
commit
->
parents
;
for
(
count
=
0
;
parents
;
parents
=
parents
->
next
,
count
++
)
;
return
count
;
}
void
topo_sort_default_setter
(
struct
commit
*
c
,
void
*
data
)
{
c
->
util
=
data
;
...
...
commit.h
浏览文件 @
16befb8b
...
...
@@ -73,8 +73,6 @@ struct commit *pop_commit(struct commit_list **stack);
void
clear_commit_marks
(
struct
commit
*
commit
,
unsigned
int
mark
);
int
count_parents
(
struct
commit
*
commit
);
/*
* Performs an in-place topological sort of list supplied.
*
...
...
diff.c
浏览文件 @
16befb8b
...
...
@@ -2103,6 +2103,8 @@ static int opt_arg(const char *arg, int arg_short, const char *arg_long, int *va
return
1
;
}
static
int
diff_scoreopt_parse
(
const
char
*
opt
);
int
diff_opt_parse
(
struct
diff_options
*
options
,
const
char
**
av
,
int
ac
)
{
const
char
*
arg
=
av
[
0
];
...
...
@@ -2274,7 +2276,7 @@ static int parse_num(const char **cp_p)
return
(
int
)((
num
>=
scale
)
?
MAX_SCORE
:
(
MAX_SCORE
*
num
/
scale
));
}
int
diff_scoreopt_parse
(
const
char
*
opt
)
static
int
diff_scoreopt_parse
(
const
char
*
opt
)
{
int
opt1
,
opt2
,
cmd
;
...
...
diff.h
浏览文件 @
16befb8b
...
...
@@ -155,8 +155,6 @@ extern void diff_unmerge(struct diff_options *,
unsigned
mode
,
const
unsigned
char
*
sha1
);
extern
int
diff_scoreopt_parse
(
const
char
*
opt
);
#define DIFF_SETUP_REVERSE 1
#define DIFF_SETUP_USE_CACHE 2
#define DIFF_SETUP_USE_SIZE_CACHE 4
...
...
quote.c
浏览文件 @
16befb8b
...
...
@@ -20,7 +20,7 @@ static inline int need_bs_quote(char c)
return
(
c
==
'\''
||
c
==
'!'
);
}
size_t
sq_quote_buf
(
char
*
dst
,
size_t
n
,
const
char
*
src
)
s
tatic
s
ize_t
sq_quote_buf
(
char
*
dst
,
size_t
n
,
const
char
*
src
)
{
char
c
;
char
*
bp
=
dst
;
...
...
@@ -62,18 +62,6 @@ void sq_quote_print(FILE *stream, const char *src)
fputc
(
'\''
,
stream
);
}
char
*
sq_quote
(
const
char
*
src
)
{
char
*
buf
;
size_t
cnt
;
cnt
=
sq_quote_buf
(
NULL
,
0
,
src
)
+
1
;
buf
=
xmalloc
(
cnt
);
sq_quote_buf
(
buf
,
cnt
,
src
);
return
buf
;
}
char
*
sq_quote_argv
(
const
char
**
argv
,
int
count
)
{
char
*
buf
,
*
to
;
...
...
quote.h
浏览文件 @
16befb8b
...
...
@@ -28,9 +28,7 @@
* excluding the final null regardless of the buffer size.
*/
extern
char
*
sq_quote
(
const
char
*
src
);
extern
void
sq_quote_print
(
FILE
*
stream
,
const
char
*
src
);
extern
size_t
sq_quote_buf
(
char
*
dst
,
size_t
n
,
const
char
*
src
);
extern
char
*
sq_quote_argv
(
const
char
**
argv
,
int
count
);
/*
...
...
upload-pack.c
浏览文件 @
16befb8b
...
...
@@ -62,7 +62,7 @@ static ssize_t send_client_data(int fd, const char *data, ssize_t sz)
return
safe_write
(
fd
,
data
,
sz
);
}
FILE
*
pack_pipe
=
NULL
;
static
FILE
*
pack_pipe
=
NULL
;
static
void
show_commit
(
struct
commit
*
commit
)
{
if
(
commit
->
object
.
flags
&
BOUNDARY
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录