libgit2/objective-git

How to add/get path for the file which I want to commit ?

Closed this issue · 0 comments

This is how I create tree for the repo and add entry with data. How we add/get path for the "file" ?

GTTreeBuilder *build = [[GTTreeBuilder alloc] initWithTree:commit.tree repository:repo error:&error];

[build addEntryWithData:[contents dataUsingEncoding:NSUTF8StringEncoding] fileName:file fileMode:GTFileModeBlob error:&error];
GTTree *tree = [build writeTree:&error];