diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-03-30 23:35:36 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-30 23:35:36 +0200 |
commit | 9210c68d2af84d869f1635efe9a2092578653297 (patch) | |
tree | 3967574291f29eca2c480266658e2d4185370d66 /cache.h | |
parent | Sync with v2.31.1 (diff) | |
parent | checkout: don't follow symlinks when removing entries (diff) | |
download | git-9210c68d2af84d869f1635efe9a2092578653297.tar.xz git-9210c68d2af84d869f1635efe9a2092578653297.zip |
Merge branch 'mt/checkout-remove-nofollow'
When "git checkout" removes a path that does not exist in the
commit it is checking out, it wasn't careful enough not to follow
symbolic links, which has been corrected.
* mt/checkout-remove-nofollow:
checkout: don't follow symlinks when removing entries
symlinks: update comment on threaded_check_leading_path()
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1659,7 +1659,7 @@ static inline void cache_def_clear(struct cache_def *cache) int has_symlink_leading_path(const char *name, int len); int threaded_has_symlink_leading_path(struct cache_def *, const char *, int); -int check_leading_path(const char *name, int len); +int check_leading_path(const char *name, int len, int warn_on_lstat_err); int has_dirs_only_path(const char *name, int len, int prefix_len); void invalidate_lstat_cache(void); void schedule_dir_for_removal(const char *name, int len); |