TGViewer
Kotatogram Kotatogram @kotatogram · 1.78K subscribers
Post #76 566
Keeping the fork updated

A few days ago TDesktop got quite big internal changes. To keep fork alive, it should be as updated as possible. It's challenging since it healily relies on TD sources: some functions that were added may get lost partially or even fully.

I'll be honest: thought about this problem bugged me even before I started development. I knew that one day changes will be so big that supporting them will be hard. So I tried to find a solution for this problem, but once I started, my focus totally changed for development. But in the end, I faced this problem.

How I decided to solve it

I had an idea to make own patcher or store fork as diff patches, but went other way: control branches.

Point is create local "control" branch, where all changes shown not chronologically, but as rebased on TDesktop's code.

I'm not going to publish this branch, otherwise repo will suffer from constant fast-forwards, but I'm saving separate copy of control branch, starting from 1.1.2.

— control-k1.1.2
— control-k1.1.3
— control-k1.1.4

How are they useful

Firstly, all fork changes are grouped by separate features instead of chronological order. Only two first commits are generalized: documentation, app name, icon and updater. Others are split by feature so you can easily see what's wrong and what feature you can rework.

Secondly, since branch merging often keeps unnecessary files (and sometimes messes everything up), branch comparisons may help to get rid of that cases.


So I hope that these branches will make fork support easier in the long run. For now they shown themselves from good side, but we'll see how it will go.
More from @kotatogram
  1. Jan 2, 2024New test build and and new development blogs channel I've thought about how to do it prope…
  2. Oct 31, 2023Post #246
  3. Oct 31, 2023About Kotatogram's state The silence has been gone too long, and with it more people askin…
  4. Aug 19, 2022Since Telegram massively revokes usernames of channels considered inactive by them, here i…
  5. Mar 8, 2022New version is out! 1.4.9 (TD 3.5.2) Changes • Internal rework of Kotatogram Settings. • R…
  6. Mar 8, 2022#Linux
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →