Show More
@@ -276,13 +276,22 b' class gitdirstate(object):' | |||
|
276 | 276 | pass |
|
277 | 277 | |
|
278 | 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 | 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 | 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 | 296 | def copied(self, path): |
|
288 | 297 | # TODO: track copies? |
General Comments 0
You need to be logged in to leave comments.
Login now