Comments (5)
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.
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.
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.
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.
fdd04ca implements everything mentioned in this issue.
from git-submerge.
Related Issues (20)
- Add Travis
- Add Appveyor HOT 6
- Add changelog
- Add build instructions to README
- The "tail" of submodule's history should be given a branch name
- Make git-submerge compile with rustc 1.18 HOT 2
- Ensure the builds are reproducible
- Support submodules in subdirectories
- Automate testing HOT 2
- Run rustfmt as part of pre-commit hook
- Look into adopting clippy checks
- Upgrade Andivionian status to Enfer
- Migrate branches HOT 2
- Migrate tags
- Check how we deal with directories named the same as submodule
- Remove .git file from submodule's directory HOT 1
- Consider changing committer-date and committer-name
- Automating mappings search
- Don't remove .gitmodules if there're other modules HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-submerge.