-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the armips submodule to a git subtree. #10161
Conversation
git-subtree-dir: ext/armips git-subtree-split: 8b4cadaf62d7de42d374056fc6aafc555f2bc7dc
I'm gonna read up a bit on git subtree, seems like a feature that might be worth learning. Armips seems like a much better candidate for a potential first use of subtree than our monstrous FFMPEG repo, that's for sure. |
Yea, that is a great point about FFMPEG. :) |
If we're using one submodule, what's the benefit of this? We don't get blame or anything else, so it just makes this repo larger, mainly: -[Unknown] |
I'm not really sure I understand what you are asking? The commits do not have to be squashed, but that would make the commit history rather messy and would inflate the size of The benefits have been discussed before, but here they are again.
This does not solve the 2nd or 3rd issue entirely, but it does help mitigate it a little, but you are right that this does inflate the size of the ppsspp repo. However users have to clone armips either way so in the end its actually smaller since armips commit history does not have to be cloned. |
OK, I understand what subtree is now but I don't see many major advantages for us. Since we are not going to do this to FFMPEG anyway, we will still have submodules, so people will still have to use There will therefore be no user experience benefit - closing. |
Sorry to hear that. Even without ffmpeg there is user benefit for every submodule they do not have to clone separately from the main repo, but its your choice. Would you mind updated the armips submodule so that at least tinyformat does not have to be cloned as a submodule? |
Yeah, I'll do that. |
Cheers! |
Update armips to latest. See #10161
I know my previous subtree PR was closed, but after talking about this in #ppsspp @ freenode I was given a 'Maybe' at the suggestion of changing armips into a git subtree so here is the proposal.
The main reason to do this is never have this compile issue again and help any noobs who try compiling ppsspp and may not understand that they need the submodule.
Additional reasons include inherent issues with submodules which have been explained before and the goal of reducing the number of submodules that will be cloned with
git submodule update --init --recursive
.Additionally the recursive
tinyformat
submodule inarmips
is now a git subtree after this PR and will pose no problems here. Kingcom/armips#125git remote add armips https://github.com/Kingcom/armips
git subtree add --prefix ext/armips armips master --squash
It can be updated at any time with.
Some documentation on git subtree.
https://www.atlassian.com/blog/git/alternatives-to-git-submodule-git-subtree