iceberg - changing non-code files in the same commit as code

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

iceberg - changing non-code files in the same commit as code

Peter Uhnak
Hi,

this is maybe a bit advanced use case from Iceberg perspective, but quite basic from git perspective.

Use case:
In the same commit where code has changed I want to update text file CHANGELOG.md.

Right now I need to modify the file after the commit and then amend it (so it is in the same commit), but it would be nice to do everything from within Pharo.

Thanks,
Peter
Reply | Threaded
Open this post in threaded view
|

Re: iceberg - changing non-code files in the same commit as code

EstebanLM
this is a bit hardcore :)

but you can do:

repo addFilesToIndex: {  ‘path/to/file/relative/to/repo’  }

Esteban



> On 18 Oct 2017, at 15:27, Peter Uhnák <[hidden email]> wrote:
>
> Hi,
>
> this is maybe a bit advanced use case from Iceberg perspective, but quite basic from git perspective.
>
> Use case:
> In the same commit where code has changed I want to update text file CHANGELOG.md.
>
> Right now I need to modify the file after the commit and then amend it (so it is in the same commit), but it would be nice to do everything from within Pharo.
>
> Thanks,
> Peter