chiark / gitweb /
tree-wide: rename hidden_file to hidden_or_backup_file and optimize
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 27 Apr 2016 13:24:59 +0000 (09:24 -0400)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +0200)
commitda2520e2ee5a89643c3178c94813548de7f6e3d7
tree1c86b661808ac240c188e57ba05fbe409bede11b
parent792902f968872bb5dd8639bc7c6bbfc7831817f5
tree-wide: rename hidden_file to hidden_or_backup_file and optimize

In standard linux parlance, "hidden" usually means that the file name starts
with ".", and nothing else. Rename the function to convey what the function does
better to casual readers.

Stop exposing hidden_file_allow_backup which is rather ugly and rewrite
hidden_file to extract the suffix first. Note that hidden_file_allow_backup
excluded files with "~" at the end, which is quite confusing. Let's get
rid of it before it gets used in the wrong place.
src/basic/dirent-util.c
src/basic/dirent-util.h
src/basic/fd-util.c
src/basic/util.c