docs/working-copy: Replace 'del index[path]' with index.remove(path)

Catch up with b12a5960 (Remove "del index[xxx]" from the API,
2013-05-02).
This commit is contained in:
W. Trevor King 2014-10-27 21:03:37 -07:00
parent ecba70198f
commit 05c570c3fc
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ Iterate over all entries of the index::
Index write::
>>> index.add('path/to/file') # git add
>>> del index['path/to/file'] # git rm
>>> index.remove('path/to/file') # git rm
>>> index.write() # don't forget to save the changes
Custom entries::