Hi Duy, On Sat, 13 Apr 2019, Nguyễn Thái Ngọc Duy wrote: > diff --git a/commit.h b/commit.h > index 42728c2906..7342727e46 100644 > --- a/commit.h > +++ b/commit.h > @@ -143,9 +143,15 @@ void repo_unuse_commit_buffer(struct repository *r, > struct object_id *get_commit_tree_oid(const struct commit *); > > +static inline void set_commit_tree(struct commit *c, struct tree *t) > +{ > + c->maybe_tree = t; > +} > + > /* I head *really* hoped that we could keep this function file-local, i.e. `static` *inside* the relevant file(s). Kind of making this a "private" or "protected" function, if you know what I mean. Ciao, Johannes