Skip to content
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

Separate docs/locales and weblate/locale into a submodule/dependency #7707

Closed
WofWca opened this issue May 28, 2022 · 2 comments
Closed

Separate docs/locales and weblate/locale into a submodule/dependency #7707

WofWca opened this issue May 28, 2022 · 2 comments
Labels
wontfix Nobody will work on this.

Comments

@WofWca
Copy link
Contributor

WofWca commented May 28, 2022

Describe the problem

  • I'd say currently git history of this repo is not as usable as it could be if the translations weren't there. For example, looking at git log without any directory filters barely makes sense because ~80%+ of the commits are translations.
  • The repo takes a lot of disk space because of all the history
  • Even programmatic history search (e.g. git log -S"|safe" takes a long time.

Describe the solution you'd like

  1. Separate docs/locales and weblate/locale into submodules. They can be kept as a branch in the same repo.
  2. (optionally) run git filter branch to clean up the history of the repo (we can keep the old history in a tag or a branch), like here (or here)

For example, the Tor Project does this. Also myself.

Possible issues with this:

Describe alternatives you've considered

Make a section somewhere that shows useful git options (and maybe other tricks) that help with this (e.g. git log -- ':!*locale*', which excludes paths containing locale).

Screenshots

No response

Additional context

No response

@nijel
Copy link
Member

nijel commented Jun 1, 2022

I don't like using submodules in this. It would break many things which currently do work (for example, pip install https://github.com/WeblateOrg/weblate/archive/main.zip would no longer include locales).

The repo takes a lot of disk space because of all the history

Moving locales to a different branch will not have an effect on the repository size - it would still be in the same repository.

I've been recently discussing repo size with GitHub support, and the conclusion is that repo takes a lot of disk space because of rebasing when merging the pull requests. This produces nicer history, but has a side effect that GitHub stores both original branch and rebased in the repository objects. You can get rid of that by using git gc --aggressive locally, but GitHub will always include these objects as they need them on their side. Moving out locales would remove only a small portion of this, same applies to code changes and dependency updates...

@github-actions
Copy link

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants