Openhab-addons: Shrink repository (OH3)

Created on 2 Apr 2019  Â·  2Comments  Â·  Source: openhab/openhab-addons

The current repository size is 346.70 MiB downloadable data and 443 MB after checkout on disk (03.05.2019).

The actual workspace data is 87MB (including the remaining .jar files) and 79MB excluding any jar files.

I suggest to rewrite the git history and remove all binary data (or to archive this repo for OH3 and start fresh).

We can't perform a git bisect for bug hunting etc, because the entire directory structure has changed and the pde based build in old commits will not work anymore, so there is no reason to keep the history.

Consequences:

  • Easier binding development because the checkout takes 1/4 of the time.
  • All current open PRs and cloned repositories need to be forcefully rebased (file movement tracking will be broken)

Because we decided to go with one repo for all bindings, those clean ups are inevitable after huge changes to keep the ecosystem healthy. WDYT?

infrastructure

Most helpful comment

Makes sense to me, especially as the history won't be of much help due to the migration.
We could keep a copy of the current repo as a backup and rewrite the history of this repo once the migration is done.

All 2 comments

Makes sense to me, especially as the history won't be of much help due to the migration.
We could keep a copy of the current repo as a backup and rewrite the history of this repo once the migration is done.

Done:

➜  git clone https://github.com/openhab/openhab-addons
Cloning into 'openhab-addons'...
remote: Enumerating objects: 10296, done.
remote: Counting objects: 100% (10296/10296), done.
remote: Compressing objects: 100% (7161/7161), done.
remote: Total 18940 (delta 5548), reused 3185 (delta 3135), pack-reused 8644
Receiving objects: 100% (18940/18940), 20.54 MiB | 15.63 MiB/s, done.
Resolving deltas: 100% (6622/6622), done.

History is kept in the archived repo https://github.com/openhab/openhab2-addons/.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

smyrman picture smyrman  Â·  4Comments

UrsusS picture UrsusS  Â·  5Comments

doandzhi picture doandzhi  Â·  6Comments

LukasA83 picture LukasA83  Â·  5Comments

trailblazer2006 picture trailblazer2006  Â·  6Comments