Skip to content

Blob ID in commit-callback cannot be used to get file contents #597

Closed
@rzuckerm

Description

@rzuckerm

I'm using the latest version of git-filter-repo, 2.45.0. My git version is 2.34.1.

I'm trying to write a commit-callback that modifies a single file. I'm basing this callback on this example. However, instead of a object ID, I'm getting an integer that I cannot use with git cat-file --batch. What I really need is the object ID.

I ended up just using the blob-callback and making sure that the blob I'm processing has a very specific prefix that is unique to that file before making changes to it.

I saw this issue, #549 , and if I had that, I'd use it instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions