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
20156653
Commit
20156653
authored
Apr 15, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up minor details
parent
5961d5ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
examples/diff.c
+1
-1
include/git2/revparse.h
+1
-3
include/git2/revwalk.h
+1
-1
No files found.
examples/diff.c
View file @
20156653
...
...
@@ -17,7 +17,7 @@ static int resolve_to_tree(
int
err
=
0
;
git_object
*
obj
=
NULL
;
if
((
err
=
git_revparse
(
&
obj
,
NULL
,
NULL
,
repo
,
identifier
))
<
0
)
if
((
err
=
git_revparse_single
(
&
obj
,
repo
,
identifier
))
<
0
)
return
err
;
switch
(
git_object_type
(
obj
))
{
...
...
include/git2/revparse.h
View file @
20156653
...
...
@@ -21,7 +21,6 @@
GIT_BEGIN_DECL
/**
*
* Find a single object, as specified by a revision string. See `man gitrevisions`,
* or http://git-scm.com/docs/git-rev-parse.html#_specifying_revisions for
* information on the syntax accepted.
...
...
@@ -31,8 +30,7 @@ GIT_BEGIN_DECL
* @param spec the textual specification for an object
* @return 0 on success, GIT_ENOTFOUND, GIT_EAMBIGUOUS, GIT_EINVALIDSPEC or an error code
*/
GIT_EXTERN
(
int
)
git_revparse_single
(
git_object
**
out
,
git_repository
*
repo
,
const
char
*
spec
);
GIT_EXTERN
(
int
)
git_revparse_single
(
git_object
**
out
,
git_repository
*
repo
,
const
char
*
spec
);
/**
...
...
include/git2/revwalk.h
View file @
20156653
...
...
@@ -221,7 +221,7 @@ GIT_EXTERN(void) git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode);
*
* The range should be of the form
* <commit>..<commit>
* where each <commit> is in the form accepted by 'git_revparse'.
* where each <commit> is in the form accepted by 'git_revparse
_single
'.
* The left-hand commit will be hidden and the right-hand commit pushed.
*
* @param walk the walker being used for the traversal
...
...
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