diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-10-10 11:39:14 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-10-10 11:39:14 -0700 |
| commit | a7a2d10421b735944f376f1de53b437bfbb93e88 (patch) | |
| tree | 7004d754ae7d6fc1e51820f556d0570da835e42c /entry.c | |
| parent | 3df51ea0a5ef88b801ab30ca28f159b898183926 (diff) | |
| parent | b1bda751739d90e1a94b47397676bcb8eebf16d5 (diff) | |
| download | git-a7a2d10421b735944f376f1de53b437bfbb93e88.tar.gz | |
Merge branch 'cw/prelim-cleanup'
Shuffle some bits across headers and sources to prepare for
libification effort.
* cw/prelim-cleanup:
parse: separate out parsing functions from config.h
config: correct bad boolean env value error message
wrapper: reduce scope of remove_or_warn()
hex-ll: separate out non-hash-algo functions
Diffstat (limited to 'entry.c')
| -rw-r--r-- | entry.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -581,3 +581,8 @@ void unlink_entry(const struct cache_entry *ce, const char *super_prefix) return; schedule_dir_for_removal(ce->name, ce_namelen(ce)); } + +int remove_or_warn(unsigned int mode, const char *file) +{ + return S_ISGITLINK(mode) ? rmdir_or_warn(file) : unlink_or_warn(file); +} |
