Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-18-2024, 10:40 AM   #1
joruib
Junior Member
joruib began at the beginning.
 
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!
joruib is offline   Reply With Quote
Old 06-18-2024, 10:44 AM   #2
rantanplan
Weirdo
rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.rantanplan ought to be getting tired of karma fortunes by now.
 
Posts: 723
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.
rantanplan is offline   Reply With Quote
Advert
Old 06-18-2024, 11:18 AM   #3
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
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.
KevinH is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:40 AM.


MobileRead.com is a privately owned, operated and funded community.