1
0
mirror of https://github.com/git/git.git synced 2024-11-19 10:33:59 +01:00
git/test-path-utils.c

14 lines
270 B
C
Raw Normal View History

#include "cache.h"
int main(int argc, char **argv)
{
if (argc == 3 && !strcmp(argv[1], "normalize_absolute_path")) {
char *buf = xmalloc(strlen(argv[2])+1);
int rv = normalize_absolute_path(buf, argv[2]);
assert(strlen(buf) == rv);
puts(buf);
}
return 0;
}