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
12356076
Commit
12356076
authored
Mar 02, 2018
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
worktree: lock reason should be const
parent
8a8ea1db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
include/git2/worktree.h
+1
-1
src/worktree.c
+1
-1
No files found.
include/git2/worktree.h
View file @
12356076
...
...
@@ -123,7 +123,7 @@ GIT_EXTERN(int) git_worktree_add(git_worktree **out, git_repository *repo,
* @param reason Reason why the working tree is being locked
* @return 0 on success, non-zero otherwise
*/
GIT_EXTERN
(
int
)
git_worktree_lock
(
git_worktree
*
wt
,
char
*
reason
);
GIT_EXTERN
(
int
)
git_worktree_lock
(
git_worktree
*
wt
,
c
onst
c
har
*
reason
);
/**
* Unlock a locked worktree
...
...
src/worktree.c
View file @
12356076
...
...
@@ -383,7 +383,7 @@ out:
return
err
;
}
int
git_worktree_lock
(
git_worktree
*
wt
,
char
*
creason
)
int
git_worktree_lock
(
git_worktree
*
wt
,
c
onst
c
har
*
creason
)
{
git_buf
buf
=
GIT_BUF_INIT
,
path
=
GIT_BUF_INIT
;
int
err
;
...
...
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