Source control for Resources/Images

This forum is for all Flare issues related to using Source Control.
Post Reply
techpubs_patti
Jr. Propeller Head
Posts: 6
Joined: Mon Jul 17, 2017 6:08 am

Source control for Resources/Images

Post by techpubs_patti »

Hello all - we're using Git for source control, and it's working really well. I have a gitignore file set up that includes the following:

Code: Select all

/Analyzer
/FileSync
/Project/Exports
/Project/Imports
/Output
My devops team just mentioned they don't think storing images in Git is a good idea at all - said it will lead to bloat in the repository and pretty soon the repository will become unusable. I'm concerned about doing this - we have a lot of screenshots in our help and we want them to be synced. Devops is recommending we store images elsewhere and reference them, rather than regularly committing them to our Git repository. Do any Flare users have insights on this? Thanks in advance!
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Source control for Resources/Images

Post by GregStenhouse »

They have a reasonable point, Git is not made for storing binaries. From what I understand each time a change is made to an image then it is pretty much duplicated in the repository rather than just the differences as with text-based files. In saying that the images are an important part of the software/help, and do need to be under source control. Also Flare won't know to publish referenced files in another location such as a network drive, unless you use a post-publish script to move files around. And then it'll probably give all sorts of broken link errors. So unless you have an unusually large number of images (>1000?) taking up a lot of space (>100mb?) and those images are constantly being updated, I think you should be fine. And the positives (backup, history, multi-authoring, ease of publishing) outweigh the negatives IMO.
trent the thief
Propellus Maximus
Posts: 613
Joined: Wed Feb 01, 2006 6:21 am
Location: Off in the dark....

Re: Source control for Resources/Images

Post by trent the thief »

@GregStenhouse

You're right about that. Even images need version control if anyone expects to always get a true output for an older version help system.
Trent.

Certifiable.

Image

umm...
I meant MAD Certified.

Official Propeller Beanie Owner :-)

:flare: Are you on Flare's Slack channels? PM me for an invitation! :flare:
Post Reply