Giter VIP home page Giter VIP logo

Comments (4)

newren avatar newren commented on June 25, 2024

FileChange expects information about the contents that the file is going to have, not what it used to have. Since a deleted file has no hash or mode, those should not be passed. (You may also want to check out the fast-import documentation, which shows that for filemodify it needs the M character, the filename, the mode, and the hash, but for filedelete it only needs the D character and the filename; filter-repo is basically just glue between fast-export and fast-import allowing you to quickly set up the needed fast-import stream.) But what's worse here is that you decided to pass the hash as the second object to the FileChange constructor; that's rather perplexing. No example does that, neither for deleted nor modified files. And if you check out the function signature, indeed the filename is always expected to be the second parameter.

It is hard to catch all mistakes, but the few places where it is easy I have assertions in the code. If the code dies with an AssertionError that is directly in git-filter-repo source, as has happened here, then you've violated a basic assumption. The traceback will even tell you the line number, e.g. line 583 here. (And if you want more context, the previous line shows in what function and line the code was at before it called the function that had the assertion error. And the line before that shows where that function was called, and so on.)

Anyway, hope that explanation helps you not only fix this issue but understand a little bit how to debug and work out other issues.

from git-filter-repo.

galsi avatar galsi commented on June 25, 2024

i am sorry to waste your time , in any way thanks for all your explanation.

from git-filter-repo.

newren avatar newren commented on June 25, 2024

Sorry if I came across as short; didn't mean to. Maybe a side-effect of waking up sick this morning.

from git-filter-repo.

galsi avatar galsi commented on June 25, 2024

Hope you feel better
just wanted to thank you for a great tool
compared to filter branch

### filter-repo is 105X faster
Big Repo 11GB
125000 commits

Add files to commits

Filter-Repo ~ 1000Sec

Filter-Branch ~ 105000Sec

from git-filter-repo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.