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
54ccc717
Commit
54ccc717
authored
Nov 05, 2011
by
Brandon Casey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/general.c: update for recent API renaming of git_config_get_int
git_config_get_int --> git_config_get_int32
parent
d3104fa0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/general.c
+2
-2
No files found.
examples/general.c
View file @
54ccc717
...
...
@@ -430,14 +430,14 @@ int main (int argc, char** argv)
printf
(
"
\n
*Config Listing*
\n
"
);
const
char
*
email
;
int
j
;
int
32_t
j
;
git_config
*
cfg
;
// Open a config object so we can read global values from it.
git_config_open_ondisk
(
&
cfg
,
"~/.gitconfig"
);
git_config_get_int
(
cfg
,
"help.autocorrect"
,
&
j
);
git_config_get_int
32
(
cfg
,
"help.autocorrect"
,
&
j
);
printf
(
"Autocorrect: %d
\n
"
,
j
);
git_config_get_string
(
cfg
,
"user.email"
,
&
email
);
...
...
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