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
7301cd60
Commit
7301cd60
authored
Sep 11, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1846 from libgit2/ntk/fix/format
errors: Fix format of some error messages
parents
6c38e60a
8cf80525
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/odb.c
+1
-1
src/reflog.c
+1
-1
src/revparse.c
+1
-1
No files found.
src/odb.c
View file @
7301cd60
...
@@ -445,7 +445,7 @@ int git_odb_get_backend(git_odb_backend **out, git_odb *odb, size_t pos)
...
@@ -445,7 +445,7 @@ int git_odb_get_backend(git_odb_backend **out, git_odb *odb, size_t pos)
return
0
;
return
0
;
}
}
giterr_set
(
GITERR_ODB
,
"No ODB backend loaded at index "
PRIuZ
,
pos
);
giterr_set
(
GITERR_ODB
,
"No ODB backend loaded at index
%
"
PRIuZ
,
pos
);
return
GIT_ENOTFOUND
;
return
GIT_ENOTFOUND
;
}
}
...
...
src/reflog.c
View file @
7301cd60
...
@@ -484,7 +484,7 @@ int git_reflog_drop(
...
@@ -484,7 +484,7 @@ int git_reflog_drop(
entry
=
(
git_reflog_entry
*
)
git_reflog_entry_byindex
(
reflog
,
idx
);
entry
=
(
git_reflog_entry
*
)
git_reflog_entry_byindex
(
reflog
,
idx
);
if
(
entry
==
NULL
)
{
if
(
entry
==
NULL
)
{
giterr_set
(
GITERR_REFERENCE
,
"No reflog entry at index "
PRIuZ
,
idx
);
giterr_set
(
GITERR_REFERENCE
,
"No reflog entry at index
%
"
PRIuZ
,
idx
);
return
GIT_ENOTFOUND
;
return
GIT_ENOTFOUND
;
}
}
...
...
src/revparse.c
View file @
7301cd60
...
@@ -217,7 +217,7 @@ static int retrieve_oid_from_reflog(git_oid *oid, git_reference *ref, size_t ide
...
@@ -217,7 +217,7 @@ static int retrieve_oid_from_reflog(git_oid *oid, git_reference *ref, size_t ide
if
(
numentries
<
identifier
+
1
)
{
if
(
numentries
<
identifier
+
1
)
{
giterr_set
(
giterr_set
(
GITERR_REFERENCE
,
GITERR_REFERENCE
,
"Reflog for '%s' has only
"
PRIuZ
" entries, asked for
"
PRIuZ
,
"Reflog for '%s' has only
%"
PRIuZ
" entries, asked for %
"
PRIuZ
,
git_reference_name
(
ref
),
numentries
,
identifier
);
git_reference_name
(
ref
),
numentries
,
identifier
);
error
=
GIT_ENOTFOUND
;
error
=
GIT_ENOTFOUND
;
...
...
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