Iceberg and git repository management

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Iceberg and git repository management

Peter Uhnak
Hi,

is Iceberg (or its git subsytem) capable of more than just Pharo code management?

More specifically, would it be possible with Iceberg to commit e.g. a change to a README.md or .travis.yml file in the repository?

Thanks,
Peter

Reply | Threaded
Open this post in threaded view
|

Re: Iceberg and git repository management

demarey
Hi Peter,

It will be possible and is already doable but with no ui support.
You can use these messages:
iceRepository
        contentOfFileNamed: 'relative/path/from/git/repo/root’ commit: repository headCommit id
iceRepository
        saveContent: ‘bla’ inWorkingCopyFile: ‘relative/path/from/git/repo/root’.
It adds the file to the git index. You still need to commit the index with the message #commitIndexWithMessage:andParents: after the file is written. Also, take care to not write Pharo code after that as it will override your working copy.

Christophe

> Le 16 avr. 2017 à 12:26, Peter Uhnak <[hidden email]> a écrit :
>
> Hi,
>
> is Iceberg (or its git subsytem) capable of more than just Pharo code management?
>
> More specifically, would it be possible with Iceberg to commit e.g. a change to a README.md or .travis.yml file in the repository?
>
> Thanks,
> Peter
>