[PATCH] git and symlinks as tracked content

Allow to store and track symlink in the repository. A symlink is stored
the same way as a regular file, only with the appropriate mode bits set.
The symlink target is therefore stored in a blob object.
This will hopefully make our udev repository fully functional. :)

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Kay Sievers
2005-05-05 14:38:25 +02:00
committed by Linus Torvalds
parent 5210372fe4
commit 8ae0a8c514
7 changed files with 74 additions and 27 deletions

View File

@ -199,7 +199,7 @@ static void show_files(void)
struct stat st;
if (excluded(ce->name) != show_ignored)
continue;
if (!stat(ce->name, &st))
if (!lstat(ce->name, &st))
continue;
printf("%s%c", ce->name, line_terminator);
}