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
f004096f
Commit
f004096f
authored
Dec 20, 2023
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples: use unsigned int for bitfields
parent
4e7006ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
examples/args.h
+1
-1
examples/checkout.c
+3
-3
examples/merge.c
+1
-1
No files found.
examples/args.h
View file @
f004096f
...
...
@@ -8,7 +8,7 @@ struct args_info {
int
argc
;
char
**
argv
;
int
pos
;
int
opts_done
:
1
;
/**< Did we see a -- separator */
unsigned
int
opts_done
:
1
;
/**< Did we see a -- separator */
};
#define ARGS_INFO_INIT { argc, argv, 0, 0 }
#define ARGS_CURRENT(args) args->argv[args->pos]
...
...
examples/checkout.c
View file @
f004096f
...
...
@@ -35,9 +35,9 @@
*/
typedef
struct
{
int
force
:
1
;
int
progress
:
1
;
int
perf
:
1
;
unsigned
int
force
:
1
;
unsigned
int
progress
:
1
;
unsigned
int
perf
:
1
;
}
checkout_options
;
static
void
print_usage
(
void
)
...
...
examples/merge.c
View file @
f004096f
...
...
@@ -30,7 +30,7 @@ struct merge_options {
git_annotated_commit
**
annotated
;
size_t
annotated_count
;
int
no_commit
:
1
;
unsigned
int
no_commit
:
1
;
};
static
void
print_usage
(
void
)
...
...
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