mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
![Johannes Schindelin](/assets/img/avatar_default.png)
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>
12 lines
147 B
C
12 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;
|
|
}
|