06-18-2024, 10:40 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2024
Device: Kindle Paperwhite
|
Using Git to manage work in Sigil
Hello everybody!
I'm starting to lay out the translation of en ePub and wanted to use Github to manage the files. I have tried FolderIn and FolderOut plugins and they seem to answer some of my needs but I wonder if there is anybody here that has been using Git to keep their work while working with Sigil. Sharing any experience on this front will be great. Thanks! |
06-18-2024, 10:44 AM | #2 |
Weirdo
Posts: 724
Karma: 9081544
Join Date: Nov 2019
Location: Wuppertal, Germany
Device: Tolino Shine Color, Tolino Vision 6, Kobo Clara 2E, Boox Note Air 2+
|
You could use https://gitbutler.com to manage your files easily in different branches.
|
Advert | |
|
06-18-2024, 11:18 AM | #3 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
FWIW, the Sigil Checkpoints feature uses git (actually a pure python implementation of it called dulwich) to create "checkpoints" ie. tags and compare across tags, and generate a history, manage repos, etc. Each epub repo has a particular unique identifier based on the uuid id set in the OPF, etc.
You can find these repos in your Sigil Preferences folder in the repos folder. Each of these repos are completely git compatible and I have often used git directly on them to do merges and things. Unfortunately dulwich does not itself support merging, and its main dev has a terrible not-invented-here syndrome which prevents him from not messing (read that breaking) any string of commits needed to actually properly enable merging. So I just gave up after 5 plus years of trying. I do have my own personal version of dulwich I call pyrotter that does properly handle merges. So fire up Sigil, load an epub, make a checkpoint by clicking the checkpoint button, and then make some changes and then use Sigil's to compare your current epub to the previous checkpoint. Check out the manage repos, and etc. Then go find the underlying git repo inside the Sigil Preferences folder inside of repos and use git on it to play around. The dulwich routines that are used to implement checkpoints are all in python and easy to read and follow. See: https://github.com/Sigil-Ebook/Sigil...repomanager.py With those as a guide, and dulwich, you should be able to create a nice external git repo interface or figure out how to push or pull from Sigil's internal repo to your own. Hope this helps. Last edited by KevinH; 06-18-2024 at 11:34 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is it possible to Git control the HTML,CSS files of Sigil | sdg001 | Sigil | 1 | 12-11-2023 06:11 AM |
Content Cannot manage collections from Amazon website (add to collection doesn't work) | cd2013 | Amazon Kindle | 6 | 03-04-2019 04:48 PM |
Getting Python to work with Sigil | JollyRoger | Sigil | 2 | 08-26-2016 03:04 AM |
sigil does not work | big-zam2 | Sigil | 17 | 04-06-2013 03:49 PM |
Asking for help.... how to avoid LCD screens and still manage to get work done | Brihat | Which one should I buy? | 5 | 08-06-2011 11:11 PM |