Giter VIP home page Giter VIP logo

Comments (5)

Minoru avatar Minoru commented on September 22, 2024

Instead of panicking, we could finish walking through the history, collect all the other dangling references, then report them all to user. The user can then provide a mapping between non-existent and existing commit IDs using one of the three methods:

  • --default-mapping <commit> will use <commit> instead of any that couldn't be found. Option can be specified only once;
  • --mapping <commit1> <commit2> will map <commit1> to <commit2>. Option can be specified multiple times;
  • --mappings-file <filename> where <filename> is a file containing two space-separated columns, the first one being the old commit ID and the second one is new commit ID.

from git-submerge.

Minoru avatar Minoru commented on September 22, 2024

Another option is to provide something like rebase's interactive mode: when the problem is encountered, we check out the tree and let the user fix everything, than just carry on until the new problem is found. I doubt the user will be able to do much to fix anything, though.

from git-submerge.

Minoru avatar Minoru commented on September 22, 2024

The commit IDs provided by the user should be checked, too:

  • <commit> in --default-mapping should exist in original submodule history;
  • <commit2> in --mapping and --mappings-file should exist in original submodule history.

from git-submerge.

Minoru avatar Minoru commented on September 22, 2024

We should thoroughly document how situations like that could even happen (spoiler: history rewriting), and what the user can do to resolve them (spoiler: find the repo that still has original history).

from git-submerge.

Minoru avatar Minoru commented on September 22, 2024

fdd04ca implements everything mentioned in this issue.

from git-submerge.

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.