Skip to content

Commit

Permalink
drop git_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
peff committed Nov 22, 2024
1 parent 21e17ba commit 0b76a9b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions path.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,21 +272,6 @@ static inline void strbuf_git_path(struct strbuf *sb, const char *fmt, ...)
va_end(args);
}

/*
* Return a statically allocated path into the main repository's
* (the_repository) git directory.
*/
__attribute__((format (printf, 1, 2)))
static inline const char *git_path(const char *fmt, ...)
{
struct strbuf *pathname = get_pathname();
va_list args;
va_start(args, fmt);
repo_git_pathv(the_repository, NULL, pathname, fmt, args);
va_end(args);
return pathname->buf;
}

#define GIT_PATH_FUNC(func, filename) \
const char *func(void) \
{ \
Expand Down

0 comments on commit 0b76a9b

Please sign in to comment.