File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change
1
+ 1.5.0 (UNRELEASED)
2
+ -------------------------
3
+
4
+ - Fix truncated diff when there are nulls
5
+ `#1047 <https://github.com/libgit2/pygit2/pull/1047 >`_
6
+ `#1043 <https://github.com/libgit2/pygit2/issues/1043 >`_
7
+
8
+ Breaking changes:
9
+
10
+ - Fix ``Index.add(...) `` raise ``TypeError `` instead of ``AttributeError `` when
11
+ arguments are of unexpected type
12
+
13
+
1
14
1.4.0 (2020-11-06)
2
15
-------------------------
3
16
Original file line number Diff line number Diff line change 1
1
**********************************************************************
2
- pygit2 Recipes
2
+ Recipes
3
3
**********************************************************************
4
4
5
5
A list of some standard git commands and their pygit2 equivalents. This
Original file line number Diff line number Diff line change @@ -199,7 +199,6 @@ def add(self, path_or_entry):
199
199
If an IndexEntry is given, that entry will be added or update in the
200
200
Index without checking for the existence of the path or id.
201
201
"""
202
-
203
202
if isinstance (path_or_entry , IndexEntry ):
204
203
entry = path_or_entry
205
204
centry , str_ref = entry ._to_c ()
@@ -208,7 +207,7 @@ def add(self, path_or_entry):
208
207
path = path_or_entry
209
208
err = C .git_index_add_bypath (self ._index , to_bytes (path ))
210
209
else :
211
- raise AttributeError ('argument must be string or IndexEntry' )
210
+ raise TypeError ('argument must be string or IndexEntry' )
212
211
213
212
check_error (err , io = True )
214
213
You can’t perform that action at this time.
0 commit comments