Commit Diff


commit - f179e66de44d3541fbbcf6be9a5bcc70465f0bc9
commit + f9eec9d5cdd0cbb22e0d3ed2d1cb55569afafce9
blob - 1bf520b11e2220ac93d5ee4e22b8879d89fb8c1d
blob + 134290f1370f5e99df41c487409828fdcb55a14d
--- lib/worktree.c
+++ lib/worktree.c
@@ -1598,7 +1598,7 @@ get_staged_status(struct got_fileindex_entry *ie)
 }
 
 static const struct got_error *
-get_symlink_status(unsigned char *status, struct stat *sb,
+get_symlink_modification_status(unsigned char *status,
     struct got_fileindex_entry *ie, const char *abspath,
     int dirfd, const char *de_name, struct got_blob_object *blob)
 {
@@ -1738,12 +1738,11 @@ get_file_status(unsigned char *status, struct stat *sb
 		goto done;
 
 	if (S_ISLNK(sb->st_mode)) {
-		err = get_symlink_status(status, sb, ie, abspath, dirfd,
-		    de_name, blob);
+		err = get_symlink_modification_status(status, ie,
+		    abspath, dirfd, de_name, blob);
 		goto done;
 	}
 
-
 	if (dirfd != -1) {
 		fd = openat(dirfd, de_name, O_RDONLY | O_NOFOLLOW);
 		if (fd == -1) {