@@ -1374,6 +1374,7 @@ class ProjectFileManager(GetMixin, CreateMixin, UpdateMixin, DeleteMixin,
1374
1374
_update_attrs = (('file_path' , 'branch' , 'content' , 'commit_message' ),
1375
1375
('encoding' , 'author_email' , 'author_name' ))
1376
1376
1377
+ @cli .register_custom_action ('ProjectFileManager' , ('file_path' , 'ref' ))
1377
1378
def get (self , file_path , ref , ** kwargs ):
1378
1379
"""Retrieve a single file.
1379
1380
@@ -1392,6 +1393,10 @@ def get(self, file_path, ref, **kwargs):
1392
1393
file_path = file_path .replace ('/' , '%2F' )
1393
1394
return GetMixin .get (self , file_path , ref = ref , ** kwargs )
1394
1395
1396
+ @cli .register_custom_action ('ProjectFileManager' ,
1397
+ ('file_path' , 'branch' , 'content' ,
1398
+ 'commit_message' ),
1399
+ ('encoding' , 'author_email' , 'author_name' ))
1395
1400
@exc .on_http_error (exc .GitlabCreateError )
1396
1401
def create (self , data , ** kwargs ):
1397
1402
"""Create a new object.
@@ -1416,6 +1421,8 @@ def create(self, data, **kwargs):
1416
1421
server_data = self .gitlab .http_post (path , post_data = data , ** kwargs )
1417
1422
return self ._obj_cls (self , server_data )
1418
1423
1424
+ @cli .register_custom_action ('ProjectFileManager' , ('file_path' , 'branch' ,
1425
+ 'commit_message' ))
1419
1426
@exc .on_http_error (exc .GitlabDeleteError )
1420
1427
def delete (self , file_path , branch , commit_message , ** kwargs ):
1421
1428
"""Delete a file on the server.
0 commit comments