Show More
@@ -276,13 +276,22 class gitdirstate(object): | |||||
276 | pass |
|
276 | pass | |
277 |
|
277 | |||
278 | def add(self, f): |
|
278 | def add(self, f): | |
279 | self.git.index.add(pycompat.fsdecode(f)) |
|
279 | index = self.git.index | |
|
280 | index.read() | |||
|
281 | index.add(pycompat.fsdecode(f)) | |||
|
282 | index.write() | |||
280 |
|
283 | |||
281 | def drop(self, f): |
|
284 | def drop(self, f): | |
282 | self.git.index.remove(pycompat.fsdecode(f)) |
|
285 | index = self.git.index | |
|
286 | index.read() | |||
|
287 | index.remove(pycompat.fsdecode(f)) | |||
|
288 | index.write() | |||
283 |
|
289 | |||
284 | def remove(self, f): |
|
290 | def remove(self, f): | |
285 | self.git.index.remove(pycompat.fsdecode(f)) |
|
291 | index = self.git.index | |
|
292 | index.read() | |||
|
293 | index.remove(pycompat.fsdecode(f)) | |||
|
294 | index.write() | |||
286 |
|
295 | |||
287 | def copied(self, path): |
|
296 | def copied(self, path): | |
288 | # TODO: track copies? |
|
297 | # TODO: track copies? |
General Comments 0
You need to be logged in to leave comments.
Login now