From: Junio C Hamano Date: Thu, 07 Jun 2012 20:42:29 GMT Subject: Re: [PATCHv9 4/4] status: better advices when splitting a commit (during rebase -i) Message-ID: <7v8vfyg8ga.fsf@alter.siamese.dyndns.org> In-Reply-To: <1339075029-27109-4-git-send-email-Lucien.Kong@ensimag.imag.fr> Lucien Kong writes: > +static char *read_line_from_git_path(const char *filename) > +{ > + struct strbuf buf = STRBUF_INIT; > + FILE *fp = fopen(git_path(filename), "r"); We currently do not pass any filename with per-cent in it, but that call should be git_path("%s", filename) for sanity.