Yes, you can use git with Pharo.

You need to get an extension called MonticelloFileTree, and you can add on top 
of it a MonticelloFileTree-Git which really integrates into git.

Main repository is there:

https://github.com/dalehenrich/filetree

And temporary instruction to try the latest gitfiletree:// stuff is (under 
Linux) :

git clone git://github.com/ThierryGoubier/filetree.git
mkdir pharo
cd pharo
wget -O- get.pharo.org/20+vm | bash
./pharo Pharo.image config http://ss3.gemstone.com/ss/FileTree 
ConfigurationOfFileTree --install=1.0.2
./pharo Pharo.image eval --save "Gofer  new url: 
'http://ss3.gemstone.com/ss/FileTree'; package: 'MonticelloFileTree-Core' 
constraint: [ :version | version author = 'ThierryGoubier' ]; load"
./pharo Pharo.image config http://ss3.gemstone.com/ss/MetaRepoForPharo20 
ConfigurationOfOSProcess --install=stable
./pharo Pharo.image eval --save Gofer new url: 
\'filetree://`pwd`/../filetree/repository/\'\; package: 
\'MonticelloFileTree-Git\'\; load
./pharo Pharo.image eval --save \(MCWorkingCopy hasPackageNamed: 
\'MonticelloFileTree-Git\'\) repositoryGroup\
    removeRepository: \( \'filetree://`pwd`/filetree/repository/\' asUrl 
mcRepositoryAsUser: nil withPassword: nil\)\;\
    addRepository: \( \'gitfiletree://`pwd`/filetree/repository/\' asUrl 
mcRepositoryAsUser: nil withPassword: nil\)    

It's really to get the latest :) It will be simpler in the future.

My workflow, for a git repo and pharo, is to have a Makefile with those 
commands, a gitignore for the pharo subdirectory, and a make clean to remove 
the pharo directory and download a fresh vm and image. It avoids storing the 
pharo image and package cache inside the git repository, as I used to do before 
;)

Thierry

________________________________________
De : Pharo-users [[email protected]] de la part de Bahman 
Movaqar [[email protected]]
Date d'envoi : mardi 18 juin 2013 21:38
À : [email protected]
Objet : [Pharo-users] Pharo + git

Hi all,

I've searched the net and found out the answer is most probably "no"; but it
doesn't hurt to ask here:

Is it posssible to use `git' as the VCS backend for Pharo?

TIA,
--
Bahman Movaqar  (http://BahmanM.com)

ERP Evaluation, Implementation & Deployment Consultant
PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)

Reply via email to