-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(completions/*): apply API renaming #1051
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akinomyoga
force-pushed
the
refactor-api-8
branch
from
September 25, 2023 10:54
5bfdb2c
to
271ef2d
Compare
akinomyoga
changed the title
[Wait #1049] refactor(completions/*): apply API renaming
refactor(completions/*): apply API renaming
Sep 25, 2023
scop
approved these changes
Nov 14, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, pre-approved with a few comments.
The original two xfuncs (exported functions): `_comp_xfunc_apt_cache_{sources,src_packages}` are merged into a single generator interface: `_comp_xfunc_apt_cache_compgen_sources`. The difference of the original two xfuncs seems to have been just the former accepts `cur` (filtering prefix) as an argument while the latter uses variable `cur` in the context. We do not need to prepare such variations for generators because the filtering prefix is externally specified to generators by `_comp_compgen -c cur`. Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
The last character of the variable can be obtained by simply ${var: -1} from bash-2.0, so there is no need to use a helper function to calculate the offset from the variable length. The function is originally introduced in commit 8b23c84 as a function named `__tar_last_char` along with many other functions, but there does not seem to be specific reason for using the function to get the last character of variables.
akinomyoga
force-pushed
the
refactor-api-8
branch
from
November 14, 2023 23:18
c89445f
to
9faa669
Compare
rebased |
akinomyoga
force-pushed
the
refactor-api-8
branch
from
November 16, 2023 22:49
9faa669
to
bb1e4f9
Compare
Note: We remove the deprecated function `_comp_cmd_apt_get_installed_packages` because this function is introduced in commit ef1b97b (2020-11-07) after the latest release 2.11 (2020-07-25), i.e., this function has never been a part of the public interface in a released version. Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
akinomyoga
force-pushed
the
refactor-api-8
branch
from
November 18, 2023 04:01
bb1e4f9
to
3c7fe7b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.