]> git.ipfire.org Git - thirdparty/git.git/blob - interpolate.h
Remove empty ref directories that prevent creating a ref.
[thirdparty/git.git] / interpolate.h
1 /*
2 * Copyright 2006 Jon Loeliger
3 */
4
5 #ifndef INTERPOLATE_H
6 #define INTERPOLATE_H
7
8 /*
9 * Convert a NUL-terminated string in buffer orig,
10 * performing substitutions on %-named sub-strings from
11 * the interpretation table.
12 */
13
14 struct interp {
15 char *name;
16 char *value;
17 };
18
19 extern int interpolate(char *result, int reslen,
20 const char *orig,
21 const struct interp *interps, int ninterps);
22
23 #endif /* INTERPOLATE_H */