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

Support for git_filter_* #442

Open
samlh opened this issue Jul 15, 2019 · 3 comments
Open

Support for git_filter_* #442

samlh opened this issue Jul 15, 2019 · 3 comments

Comments

@samlh
Copy link
Contributor

samlh commented Jul 15, 2019

Ideally, this would include allowing creation of custom filters (trait name recommendations appreciated).

Specifically, I think I'll need:

  • git_filter
  • git_filter_register
  • git_blob_filtered_content

I may work on this for my current project.

@samlh
Copy link
Contributor Author

samlh commented Jul 18, 2019

As it turns out, it was easier to implement git-lfs support for my project without using libgit2's filter support, so I no longer have plans to work on this.

Please feel free to close this or keep it open as you prefer.

@extrawurst
Copy link
Contributor

@samlh stumbled over this on my search to implement git-lfs myself. how did you end up supporting it?

@samlh
Copy link
Contributor Author

samlh commented Jan 22, 2022

@extrawurst It's been a while, but I've pushed up the code here:
https://github.com/samlh/gitblob/blob/97a897da973af6b0a5548469fcd5e081936074cd/src/main.rs#L255-L276

I seem to recall the code is making some assumptions about the repos it has to work with, but I'll admit I've forgotten what the assumptions were 😄.

I hope it helps regardless!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants