mirror of
https://github.com/git/git.git
synced 2024-11-09 02:33:11 +01:00
e5392c5146
This patch adds convenience functions to work with absolute paths. The function is_absolute_path() should help the efforts to integrate the MinGW fork. Note that make_absolute_path() returns a pointer to a static buffer. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
11 lines
147 B
C
11 lines
147 B
C
#include "cache.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
while (argc > 1) {
|
|
puts(make_absolute_path(argv[1]));
|
|
argc--;
|
|
argv++;
|
|
}
|
|
return 0;
|
|
}
|