Skip to content

Commit 77f2c6b

Browse files
committed
refactor: refer to underscore prefixed files as "fallback"
They are not always necessarily deprecated, but can serve as fallbacks due to other reasons.
1 parent d1a2999 commit 77f2c6b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+26
-26
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ repos:
3434
files: ^test/t/.+\.py$
3535
pass_filenames: false
3636

37-
- id: update-test-deprecated-links
38-
name: update-test-deprecated-links
37+
- id: update-test-fallback-links
38+
name: update-test-fallback-links
3939
language: script
40-
entry: test/deprecated/update-deprecated-links
40+
entry: test/fallback/update-fallback-links
4141
files: ^completions/_
4242
pass_filenames: false
4343

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2557,7 +2557,7 @@ __load_completion()
25572557
done
25582558
done
25592559
2560-
# search deprecated completions "_$cmd"
2560+
# Search fallback completions named "_$cmd"
25612561
for dir in "${dirs[@]}"; do
25622562
[[ -d $dir ]] || continue
25632563
compfile="$dir/_$cmd"

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ completions/Makefile
1717
doc/Makefile
1818
helpers/Makefile
1919
test/Makefile
20-
test/deprecated/Makefile
21-
test/deprecated/completions/Makefile
20+
test/fallback/Makefile
21+
test/fallback/completions/Makefile
2222
test/t/Makefile
2323
test/t/unit/Makefile
2424
])

doc/api-and-naming.md

Lines changed: 2 additions & 2 deletions

test/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SUBDIRS = deprecated t
1+
SUBDIRS = fallback t
22

33
EXTRA_DIST = config \
44
fixtures \

test/config/bashrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export BASH_COMPLETION_USER_FILE=/dev/null
3434
# overriding in-tree completions. Setting the user dir would otherwise suffice,
3535
# but simple xspec completions are only installed if a separate one is not
3636
# found in *any* completion dirs, and we want to use our "shadow" completion
37-
# dir with which we cause loading of our in-tree deprecated completions
37+
# dir with which we cause loading of our in-tree fallback completions
3838
# instead of possibly (system-)installed upstream ones.
39-
export BASH_COMPLETION_USER_DIR="$SRCDIRABS/deprecated"
39+
export BASH_COMPLETION_USER_DIR="$SRCDIRABS/fallback"
4040
export BASH_COMPLETION_COMPAT_DIR="$SRCDIRABS/../bash_completion.d"
4141
export XDG_DATA_DIRS=/var/empty
4242

test/deprecated/Makefile.am

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/deprecated/completions/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/fallback/Makefile.am

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SUBDIRS = completions
2+
3+
EXTRA_DIST = \
4+
update-fallback-links
5+
6+
update:
7+
./update-fallback-links

0 commit comments

Comments
 (0)