Skip to content

Use git-lfs with libgit2 #375

@ChristophM2000

Description

@ChristophM2000

Hi,

We are a software company with a customer that uses Microsoft TFS for version control. In the main time we work completely disconnected from the customer on our side on a part of the software and sync the code changes e.g. once in a week. So we decided to use git-tfs bridge to pull from TFS server into a git repository that is than cloned by our developers. This works very good.
But we have a performance problem. Our customer has put some very large (>1gb) binary files in TFS, which has no problem with that. E.g. the complete MS SQL Server Setup files or some binary dependencies. Some files, like the SQL Server setup, can be ignored by "git-tfs pull", but some binary dependencies are needed needed to run the project. So in the end the repository has a size of >20gb and git gets very very slow.

So the idea is to use git-lfs for that binaries. Which works if we manually create a git repos and "git add" the whole project. Every tracked binary goes in lfs.
But cause we use git-tfs to create the git repos from TFS this does not work, cause git-tfs uses libgit2 to work on the git repos and that does not support the smudge and clean filters of standard git. They support smudge and clean filters but they seam to be coded in a different way. See libgit2/libgit2#1473.

Does git-lfs support working with libgit2 smudge and clean filters or maybe in foreseeable future?

Thanks and greetings,
Christoph

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions