Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: clap-rs/clap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.4.11
Choose a base ref
...
head repository: clap-rs/clap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.4.12
Choose a head ref
  • 10 commits
  • 25 files changed
  • 2 contributors

Commits on Dec 27, 2023

  1. Configuration menu
    Copy the full SHA
    3724b9e View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5273 from epage/docsrs

    docs: Include more content on docs.rs
    epage authored Dec 27, 2023
    1 Configuration menu
    Copy the full SHA
    3630e58 View commit details
    Browse the repository at this point in the history
  3. 1 Configuration menu
    Copy the full SHA
    76beca4 View commit details
    Browse the repository at this point in the history
  4. 1 Configuration menu
    Copy the full SHA
    ace7bb5 View commit details
    Browse the repository at this point in the history
  5. chore: Release

    epage committed Dec 27, 2023
    1 Configuration menu
    Copy the full SHA
    28763eb View commit details
    Browse the repository at this point in the history
  6. test: Update snapshots

    epage committed Dec 27, 2023
    1 Configuration menu
    Copy the full SHA
    2920808 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. perf: Avoid retrieving possible_values unless used

    In some sophisticated situations, these may be expensive to calculate.
    One example might be a '--branch' option accepting any single Git
    branch that exists on the remote -- in such a case, the remote would
    need to be queried for all possible_values. The cost is ultimately
    unavoidable at runtime since this validation has to happen eventually,
    but there's no need to pay it when generating help text if
    `is_hide_possible_values_set`.
    
    To keep '-h' fast, avoid collecting `possible_values` during '-h'
    unless we're actually going to use the values in display.
    
    This optimization is repeated for the manpage renderer.
    
    This is trivially based on the short-circuiting logic at [1], which at
    least supports the idea that actually consuming the iterator is not
    generally-guaranteed behavior when `hide_possible_values` is set.
    
    Note on the 'expensive' mod: This keeps all the possible_values tests
    in one file but allows the entire set of tests to be controlled by the
    'strings' feature (which is required to be able to use String rather
    than str for each possible value).
    
    [1]: clap_builder/src/builder/command.rs:long_help_exists_
    vermiculus committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    05cd057 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #5267 from vermiculus/sa/avoid-pv-expansion-in-help

    perf: avoid retrieving possible_values unless they're used
    epage authored Dec 28, 2023
    1 Configuration menu
    Copy the full SHA
    53f5b82 View commit details
    Browse the repository at this point in the history
  3. docs: Update changelog

    epage committed Dec 28, 2023
    1 Configuration menu
    Copy the full SHA
    048e7f0 View commit details
    Browse the repository at this point in the history
  4. chore: Release

    epage committed Dec 28, 2023
    1 Configuration menu
    Copy the full SHA
    6d601e6 View commit details
    Browse the repository at this point in the history
Loading