Skip to content
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

cat-file: add %(objectmode) avoid verifying submodules' OIDs #1689

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Mar 11, 2024

  1. t1006: update 'run_tests' to test generic object specifiers

    Update the 'run_tests' test wrapper so that the first argument may refer to
    any specifier that uniquely identifies an object (e.g. a ref name,
    '<OID>:<path>', '<OID>^{<type>}', etc.), rather than only a full object ID.
    Also, add a test that uses a non-OID identifier, ensuring appropriate
    parsing in 'cat-file'.
    
    Signed-off-by: Victoria Dye <[email protected]>
    Signed-off-by: Johannes Schindelin <[email protected]>
    vdye authored and dscho committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    765d724 View commit details
    Browse the repository at this point in the history
  2. cat-file: add %(objectmode) atom

    Add a formatting atom, used with the --batch-check/--batch-command options,
    that prints the octal representation of the object mode if a given revision
    includes that information, e.g. one that follows the format
    <tree-ish>:<path>. If the mode information does not exist, an empty string
    is printed instead.
    
    Signed-off-by: Victoria Dye <[email protected]>
    Signed-off-by: Johannes Schindelin <[email protected]>
    vdye authored and dscho committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    b836bc6 View commit details
    Browse the repository at this point in the history
  3. cat-file: avoid verifying submodules' OIDs

    Submodules are strange creatures. They have OIDs, but the corresponding
    objects are not expected to be present in the current directory.
    
    Let's teach `cat-file` about this: This command should not even attempt
    to look up those objects, let alone declare them "missing".
    
    Signed-off-by: Johannes Schindelin <[email protected]>
    dscho committed Mar 11, 2024
    Configuration menu
    Copy the full SHA
    951f733 View commit details
    Browse the repository at this point in the history