You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
I can use that dict to convert the blob ID I get from the commit callback into an object ID that I can pass to git cat-file to get the contents.
While this works, it would be nice if the original_id where part of the blob information passed in files_changed, or if there were a way to access the blob to get its contents. That would remove the need for git cat-file.
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 withgit 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.
The text was updated successfully, but these errors were encountered: