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
79d0e0c1
Unverified
Commit
79d0e0c1
authored
Jun 12, 2020
by
Edward Thomson
Committed by
GitHub
Jun 12, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5553 from pks-t/pks/example-log-docfix
examples: log: fix documentation generation
parents
96a5f38f
939cb73f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
examples/log.c
+18
-9
No files found.
examples/log.c
View file @
79d0e0c1
...
...
@@ -434,21 +434,28 @@ static int parse_options(
else
if
(
!
strcmp
(
a
,
"--reverse"
))
set_sorting
(
s
,
GIT_SORT_REVERSE
);
else
if
(
match_str_arg
(
&
opt
->
author
,
&
args
,
"--author"
))
/** Found valid --author */
;
/** Found valid --author */
;
else
if
(
match_str_arg
(
&
opt
->
committer
,
&
args
,
"--committer"
))
/** Found valid --committer */
;
/** Found valid --committer */
;
else
if
(
match_str_arg
(
&
opt
->
grep
,
&
args
,
"--grep"
))
/** Found valid --grep */
;
/** Found valid --grep */
;
else
if
(
match_str_arg
(
&
s
->
repodir
,
&
args
,
"--git-dir"
))
/** Found git-dir. */
;
/** Found git-dir. */
;
else
if
(
match_int_arg
(
&
opt
->
skip
,
&
args
,
"--skip"
,
0
))
/** Found valid --skip. */
;
/** Found valid --skip. */
;
else
if
(
match_int_arg
(
&
opt
->
limit
,
&
args
,
"--max-count"
,
0
))
/** Found valid --max-count. */
;
/** Found valid --max-count. */
;
else
if
(
a
[
1
]
>=
'0'
&&
a
[
1
]
<=
'9'
)
is_integer
(
&
opt
->
limit
,
a
+
1
,
0
);
else
if
(
match_int_arg
(
&
opt
->
limit
,
&
args
,
"-n"
,
0
))
/** Found valid -n. */
;
/** Found valid -n. */
;
else
if
(
!
strcmp
(
a
,
"--merges"
))
opt
->
min_parents
=
2
;
else
if
(
!
strcmp
(
a
,
"--no-merges"
))
...
...
@@ -458,9 +465,11 @@ static int parse_options(
else
if
(
!
strcmp
(
a
,
"--no-max-parents"
))
opt
->
max_parents
=
-
1
;
else
if
(
match_int_arg
(
&
opt
->
max_parents
,
&
args
,
"--max-parents="
,
1
))
/** Found valid --max-parents. */
;
/** Found valid --max-parents. */
;
else
if
(
match_int_arg
(
&
opt
->
min_parents
,
&
args
,
"--min-parents="
,
0
))
/** Found valid --min_parents. */
;
/** Found valid --min_parents. */
;
else
if
(
!
strcmp
(
a
,
"-p"
)
||
!
strcmp
(
a
,
"-u"
)
||
!
strcmp
(
a
,
"--patch"
))
opt
->
show_diff
=
1
;
else
if
(
!
strcmp
(
a
,
"--log-size"
))
...
...
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