GIMP Script-fu

Artifact Content

Artifact fd4d33b5507264f99552c5d906b13f425e403b48:

Wiki page [cloning-repo] by saulgoode 2014-02-17 09:01:47.
D 2014-02-17T09:01:47.684
L cloning-repo
P 5b76528f793da0db5f80e774ee5f58c4f8893c4f
U saulgoode
W 2346
All of my scripts are maintained using [|Fossil] source code manager. You can clone this repository, thus gaining direct access to all of my scripts (including the history of their development) using the following command:

    fossil clone <i>sg-script-fu.fossil</i>

When prompted for a password, just hit RETURN. This will create a file named 'sg-script-fu.fossil' on your disk (you can name it something else if you wish, but I recommend that you use the <i>.fossil</i> extension). This single file -- called a Fossil repository (or "repo" for short) -- is sort of like a ZIP archive and contains copies of all of my scripts (about 75 at present), and also the full history of all of the changes made to each of them. The .fossil file also contains the contents of this WIKI (except for the images). 

You can browse your cloned repo by issuing the following command:

    fossil ui sg-script-fu.fossil

This will open the repository in your webbrowser and present you with a user interface identical to the one you are viewing now, except that it will be your local copy and you will have the ability to change things as much as you like.

To actually access the scripts in the Fossil repo, create a directory to hold the scripts, change to that directory, and then run "fossil open <i>/path/to/sg-script-fu.fossil</i>".

    mkdir work<br>
    cd work<br>
    fossil open ../sg-script-fu.fossil

The directory will be populated with the latest versions of the files in the trunk branch of the repo. My script-fu repository is organized such that each script belongs to its own branch, while my favorite, most useful scripts also appear in trunk.

Within you working directory, there is also a hidden file named ".fslckout". This contains some meta-data such as the location of the original repository file and some undo and merging information.

You can examine an individual branch by doing a "checkout" on it. For example:

    fossil checkout sg-sudoku

After doing a checkout, only the files in the new branch will populate the directory. You can get a list of all of the branches in the repository with:

   fossil branch list

<h2>More to come at a later date.</h2>

Z efeb265957d5633c6d62027e53898c54