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
6357388e
Commit
6357388e
authored
Jan 27, 2014
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhance clarity
parent
a2311f92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/refdb_fs.c
+4
-2
No files found.
src/refdb_fs.c
View file @
6357388e
...
@@ -1438,8 +1438,10 @@ static int reflog_append(refdb_fs_backend *backend, const git_reference *ref, co
...
@@ -1438,8 +1438,10 @@ static int reflog_append(refdb_fs_backend *backend, const git_reference *ref, co
git_buf
buf
=
GIT_BUF_INIT
,
path
=
GIT_BUF_INIT
;
git_buf
buf
=
GIT_BUF_INIT
,
path
=
GIT_BUF_INIT
;
git_repository
*
repo
=
backend
->
repo
;
git_repository
*
repo
=
backend
->
repo
;
/* Creation of symbolic references doesn't get a reflog entry */
/* Creation of a symbolic reference doesn't get a reflog entry, except for
if
(
ref
->
type
==
GIT_REF_SYMBOLIC
&&
strcmp
(
ref
->
name
,
GIT_HEAD_FILE
))
* HEAD. git_repository_set_head and friends go through here. */
if
(
ref
->
type
==
GIT_REF_SYMBOLIC
&&
0
!=
strcmp
(
ref
->
name
,
GIT_HEAD_FILE
))
return
0
;
return
0
;
error
=
git_reference_name_to_id
(
&
old_id
,
repo
,
ref
->
name
);
error
=
git_reference_name_to_id
(
&
old_id
,
repo
,
ref
->
name
);
...
...
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