File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ int git_filter_init(git_filter *filter, unsigned int version);
60
60
int git_filter_register (
61
61
const char * name , git_filter * filter , int priority );
62
62
int git_filter_unregister (const char * name );
63
+ git_repository * git_filter_source_repo (const git_filter_source * src );
63
64
const char * git_filter_source_path (const git_filter_source * src );
64
65
uint16_t git_filter_source_filemode (const git_filter_source * src );
65
66
const git_oid * git_filter_source_id (const git_filter_source * src );
Original file line number Diff line number Diff line change 32
32
from .callbacks import Payload
33
33
from .errors import check_error , Passthrough
34
34
from .ffi import ffi , C
35
+ from .repository import Repository
35
36
from .utils import maybe_string , to_bytes
36
37
37
38
@@ -48,6 +49,7 @@ class FilterSource:
48
49
be None.
49
50
flags: GIT_FILTER_* flags to be applied for this blob.
50
51
"""
52
+ repo : Repository
51
53
path : str
52
54
filemode : int
53
55
oid : Optional [Oid ]
@@ -56,6 +58,7 @@ class FilterSource:
56
58
@classmethod
57
59
def _from_c (cls , ptr ):
58
60
src = cls .__new__ (cls )
61
+ src .repo = Repository ._from_c (C .git_filter_source_repo (ptr ), owned = False )
59
62
src .path = maybe_string (C .git_filter_source_path (ptr ))
60
63
src .filemode = C .git_filter_source_filemode (ptr )
61
64
try :
You can’t perform that action at this time.
0 commit comments