> And it turns out that if the file is unchanged, then adding it to the
index has no effect, so I can skip that step.
this is equivalent to "git add"; further git can only track changes... so
adding a file that hasn't changed produces an empty diff

I have it on a class-side in a script method... which also embeds the
content of the changelog into the image (compiles into the method)...

But the menus of iceberg are easily extensible (don't remember what exactly
you need to subclass)... so you could add a context-menu on a repository
with "add file to index" which would open a file dialog.

Peter

On Wed, Feb 28, 2018 at 1:24 AM, Andrew P. Black <apbl...@pdx.edu> wrote:

>
> > On 28 Feb 2018, at 12:32 , Peter Uhnák <i.uh...@gmail.com> wrote:
> >
> > I'm using the following
> >
> > | repo |
> > repo := IceRepository registry detect: [ :each | each name = 'my-repo' ].
> > repo addFilesToIndex: {'CHANGELOG.md'}.
> >
> > so then the iceberg commit will also include the (external) file change
> >
>
> Thank you!  And it turns out that if the file is unchanged, then adding it
> to the index has no effect, so I can skip that step.
>
> Have you hooked the above code into Iceberg, or do you run it manually?
>
>         Andrew
>
>
>
>

Reply via email to