[Larceny-users] Using git with larceny's repository

Lynn Winebarger owinebar at gmail.com
Sun Apr 19 22:27:54 EDT 2009


On Fri, Apr 17, 2009 at 4:24 PM, Lynn Winebarger <owinebar at gmail.com> wrote:
> I've started using git to track the larceny repository.  Since
> larceny's build process is really geared to happen in place, it seems
> like I'm either going to have to a dance with copying the directory
> after a build and then clearing the build by checking out the last
> committed version, or I need to set up the "exclude" file and
> .gitignore files to ignore autogenerated and object files.

To answer my own question, "git clean" is an excellent reason to use
git with larceny.

Assuming your repository reflects trunk/larceny_src In the
.git/info/exclude file I put:
.[oa]
*~
\#*\#
Makefile
*.rej
*.orig
*.l[ao]p
*.fasl
*.slfasl
--------------------------------
For the rest, build the executable in the source tree as per the
instructions, then
$ git clean -n | sed -e 's/Would remove //' >.gitignore
$ git commit -m "Added .gitignore for autogenerated files"
$ git clean -x -f
and now you have a pristine tree and autogenerated files won't be
added by "git add ."

Lynn



More information about the Larceny-users mailing list