Equivalent Exchange 3

Equivalent Exchange 3

2M Downloads

[Github Suggestion] External Lang Directory

winstliu opened this issue ยท 7 comments

commented

It gets slightly tedious seeing all the localization updates/commits, so I was thinking that we could have an external localization directory similar to BuildCraft's. This way, you could just merge it into the main branch once a significant number of commits build up (and I'm not sure, but will the commits show up, or just the "Merged branch into branch"? If it does, that will make the commit list much cleaner) instead of pulling each commit into master one by one (other people could handle that repository too other than you).

commented

If it would work, that would be great

commented

Implement this using git submodule

commented

Yeah, because right now, we can't accurately gauge actual development activity versus language adaptations.

commented

Here's how to do this: (Source: https://help.github.com/articles/splitting-a-subpath-out-into-a-new-repo )

  1. Create a new GitHub repo named "Equivalent-Exchange-3-Resources"
  2. Clone the existing repo into a new directory, erase everything not in the resources folder
  3. Push this new repository to that new GH repo
  4. In this repo, git rm -r the resources and submodule add our new repo
  5. Commit changes and push
~/projects$ git clone [email protected]:pahimar/Equivalent-Exchange-3.git EqEx-resources
# Clone the repo into a custom-named directory
~/projects$ cd EqEx-resources
~/projects/EqEx-resources$ git filter-branch --prune-empty --subdirectory-filter resources master
# Rewrite the history to only include items in the resources/ folder.
~/projects/EqEx-resources$ ls
com
# Verify that the command worked
~/projects/EqEx-resources$ git remote set-url origin [email protected]:pahimar/Equivalent-Exchange-3-Resources.git
~/projects/EqEx-resources$ git push -u origin master
# Push to your new GitHub repository
~/projects/EqEx-resources$ cd ../Equivalent-Exchange-3
~/projects/Equivalent-Exchange-3$ git rm -r resources/
~/projects/Equivalent-Exchange-3$ git submodule add [email protected]:pahimar/Equivalent-Exchange-3-Resources.git resources
# Go back to the primary repository, and add the submodule
# BEFORE committing all of this, let's make sure that everything's correct.
# This is what you should see:
~/projects/Equivalent-Exchange-3$ git status
#   new file:   .gitmodules
#   new file:   resources
#   deleted:    resources/com/pahimar/ee3/art/gui/calcinator.png
#      deleted:    .......
~/projects/Equivalent-Exchange-3/resources$ git status
# On branch master
nothing to commit (working directory clean)

# Okay, so we're all good. The submodule is clean, and a bunch of stuff was deleted from our main repo.
~/projects/Equivalent-Exchange-3$ git commit -m "Moved resources/ to submodule"
~/projects/Equivalent-Exchange-3$ git push
# Commit and push here

And, we're done!
When you push, it should look like this:
https://github.com/riking/Equivalent-Exchange-3
But don't take a PR from that, because that submodule is linked to my repo. Do it all yourself: you're the project originator.

commented

Truth be told, I actually don't mind the amount of language PRs on the main project :3 It keeps localization in mind for me!

commented

Okay. Maybe some sort of standard for the commit messages?

commented

Truth be told, I actually don't mind the amount of language PRs on the main project :3 It keeps localization in mind for me!

Well then, should this be closed, or are you actually planning something? :P