Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
8be22614
Commit
8be22614
authored
Nov 11, 2021
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples: remove unused function
parent
2374ba8d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
examples/add.c
+0
-15
No files found.
examples/add.c
View file @
8be22614
...
...
@@ -110,21 +110,6 @@ int print_matched_cb(const char *path, const char *matched_pathspec, void *paylo
return
ret
;
}
void
init_array
(
git_strarray
*
array
,
int
argc
,
char
**
argv
)
{
unsigned
int
i
;
array
->
count
=
argc
;
array
->
strings
=
calloc
(
array
->
count
,
sizeof
(
char
*
));
assert
(
array
->
strings
!=
NULL
);
for
(
i
=
0
;
i
<
array
->
count
;
i
++
)
{
array
->
strings
[
i
]
=
argv
[
i
];
}
return
;
}
void
print_usage
(
void
)
{
fprintf
(
stderr
,
"usage: add [options] [--] file-spec [file-spec] [...]
\n\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment