Commit f9eec9d5cdd0cbb22e0d3ed2d1cb55569afafce9

Stefan Sperling 2020-07-23T14:22:40

rename get_symlink_status() to get_symlink_modification_status() for clarity

diff --git a/lib/worktree.c b/lib/worktree.c
index 1bf520b..134290f 100644
--- a/lib/worktree.c
+++ b/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) {