commit af5fb6ffabd9a4c16cb2b3362df7995e0330660b
parent 6ef8965209e6b2b177ba65147f12c67c53e775a7
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 24 May 2022 00:38:33 +0200
parent 6ef8965209e6b2b177ba65147f12c67c53e775a7
Author: Leah (ctucx) <leah@ctu.cx>
Date: Tue, 24 May 2022 00:38:33 +0200
writeblob: implement 'entrypath' argument
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stagit.c b/stagit.c @@ -925,7 +925,7 @@ writeblobraw(const git_blob *blob, const char *fpath, const char *filename, git_ } size_t -writeblob(git_object *obj, const char *fpath, const char *rpath, const char *filename, size_t filesize) +writeblob(git_object *obj, const char *fpath, const char *rpath, const char *filepath, const char *filename, size_t filesize) { char tmp[PATH_MAX] = ""; const char *p, *oldrelpath; @@ -1071,7 +1071,7 @@ writefilestree(FILE *fp, git_tree *tree, const char *path) case GIT_OBJ_BLOB: is_obj_tree = 0; filesize = git_blob_rawsize((git_blob *)obj); - lc = writeblob(obj, filepath, rawpath, entryname, filesize); + lc = writeblob(obj, filepath, rawpath, entrypath, entryname, filesize); writeblobraw((git_blob *)obj, rawpath, entryname, filesize); break; case GIT_OBJ_TREE: