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
27e3c583
Commit
27e3c583
authored
Oct 03, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reflog: create reflog and its directory structure
parent
d2aa6de7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/reflog.c
+4
-1
No files found.
src/reflog.c
View file @
27e3c583
...
@@ -188,7 +188,10 @@ static int retrieve_reflog_path(git_buf *path, git_reference *ref)
...
@@ -188,7 +188,10 @@ static int retrieve_reflog_path(git_buf *path, git_reference *ref)
static
int
create_new_reflog_file
(
const
char
*
filepath
)
static
int
create_new_reflog_file
(
const
char
*
filepath
)
{
{
int
fd
;
int
fd
,
error
;
if
((
error
=
git_futils_mkpath2file
(
filepath
,
GIT_REFLOG_DIR_MODE
))
<
0
)
return
error
;
if
((
fd
=
p_open
(
filepath
,
if
((
fd
=
p_open
(
filepath
,
O_WRONLY
|
O_CREAT
|
O_TRUNC
,
O_WRONLY
|
O_CREAT
|
O_TRUNC
,
...
...
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