Giter VIP home page Giter VIP logo

Comments (3)

tjohnston-cd avatar tjohnston-cd commented on July 4, 2024 1

Ah, interesting.. your reply got me thinking, and I see what's happening now.

After I git-filter-repo the path containing my subtree, the merge commit for that is rewritten (so it no longer creates files in the subtree path). The child commits for that subtree are still in the repo (and they're not empty, so they're not being removed).

So..I need to make all the subtree history's commits empty as part of this.

from git-filter-repo.

newren avatar newren commented on July 4, 2024

filter-repo by default only removes commits if they become empty; are there other changes that were made as part of those commits that are outside the paths you are removing? You may want to run git log --name-status ... to get a look at some of the commits in question and see which files they still modify. (I'll assume for now that we're not dealing with commits that started empty.) Of course, if you have a complex enough series of merges, then merge commits may need to be retained just to preserve the commit topology. So git log --graph --name-status ... might be handy.

It's hard to say more without getting a chance to look at the repo in question, but hopefully that helps you narrow it down.

from git-filter-repo.

newren avatar newren commented on July 4, 2024

Glad you understand; I'll go ahead and close out.

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.