Skip to content

Commit

Permalink
fixup! Introduce helper to create symlinks that knows about index_state
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Sep 13, 2024
1 parent bde945f commit 392d013
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,8 @@ static inline int git_has_dir_sep(const char *path)

#ifndef create_symlink
struct index_state;
static inline int git_create_symlink(struct index_state *index, const char *target, const char *link)
static inline int git_create_symlink(struct index_state *index UNUSED,
const char *target, const char *link)
{
return symlink(target, link);
}
Expand Down

0 comments on commit 392d013

Please sign in to comment.