]> git.ipfire.org Git - thirdparty/git.git/commit - apply.c
apply: use strsets to track symlinks
authorRené Scharfe <l.s.r@web.de>
Fri, 7 Jan 2022 12:16:53 +0000 (13:16 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jan 2022 19:40:44 +0000 (11:40 -0800)
commit4e9a3252531eab8af5559b25efac02b33f6ca5fe
tree04453b8ae45ef0fd7fbc528c78cd0aeba920b0c9
parente9d7761bb94f20acc98824275e317fa82436c25d
apply: use strsets to track symlinks

Symlink changes are tracked in a string_list, with the util pointer
value indicating whether a symlink is kept or removed.  Using fake
pointer values requires awkward casts.  Use one strset for each type of
change instead to simplify and shorten the code.

Original-patch-by: Jessica Clarke <jrtc27@jrtc27.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
apply.h