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
b419fe2d
Commit
b419fe2d
authored
Aug 02, 2011
by
Carlos Martín Nieto
Committed by
Vicent Marti
Sep 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Invalidate the path when removing from the index
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent
e23ede0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/index.c
+6
-0
No files found.
src/index.c
View file @
b419fe2d
...
...
@@ -490,7 +490,13 @@ int git_index_append2(git_index *index, const git_index_entry *source_entry)
int
git_index_remove
(
git_index
*
index
,
int
position
)
{
git_index_entry
*
entry
;
git_vector_sort
(
&
index
->
entries
);
entry
=
git_vector_get
(
&
index
->
entries
,
position
);
if
(
entry
!=
NULL
)
git_tree_cache_invalidate_path
(
index
->
tree
,
entry
->
path
);
return
git_vector_remove
(
&
index
->
entries
,
(
unsigned
int
)
position
);
}
...
...
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