.gitignore file for TLA+

111 views
Skip to first unread message

Vignesh

unread,
Jun 4, 2019, 4:41:17 PM6/4/19
to tla...@googlegroups.com
Hi,

I am trying to create a .gitignore file for my TLA+ spec files folder.
TLA+ toolbox generates a specname.toolbox folder for every Model and looks like it creates a new sub folder inside the specname.toolbox folder for every run. There is also a settings file.

Does anyone have a reference .gitnore file that I can use?

I looked at https://github.com/tlaplus/Examples and its .gitignore file doesn't ignore all the generated files.

Thanks,
Vignesh.

Hillel Wayne

unread,
Jun 4, 2019, 5:17:14 PM6/4/19
to tla...@googlegroups.com

> Hi,
>
> I am trying to create a .gitignore file for my TLA+ spec files folder.
> TLA+ toolbox generates a specname.toolbox folder for every Model and
> looks like it creates a new sub folder inside the specname.toolbox
> folder for every run. There is also a settings file.
>
> Does anyone have a reference .gitnore file that I can use?
>
I like the ElasticSearch gitignore:
https://github.com/elastic/elasticsearch-formal-models/blob/master/.gitignore

Markus Kuppe

unread,
Jun 4, 2019, 5:37:34 PM6/4/19
to tla...@googlegroups.com
On 04.06.19 14:10, Hillel Wayne wrote:
> I like the ElasticSearch gitignore:
> https://github.com/elastic/elasticsearch-formal-models/blob/master/.gitignore


This .gitignore file ignores the model checking results
(*.tla/*.cfg/*.out) which might not be desirable if one wants to keep
the history and outcome of TLC runs on intermediate stages of the spec.
Note that the three file types are just text and can thus be
efficiently compressed by git.

If one does not want to keep snapshots and thus any history, "Number of
model snapshots to keep" on the Toolbox's "TLC Model Checker" preference
page can be set to zero to stop the Toolbox from creating snapshots.

M.

Vignesh

unread,
Jun 4, 2019, 8:13:59 PM6/4/19
to tla...@googlegroups.com
Thanks! Setting "Number of model snapshots" to zero and updating the .gitignore to not ignore .cfg files works for me.

--
You received this message because you are subscribed to the Google Groups "tlaplus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+u...@googlegroups.com.
To post to this group, send email to tla...@googlegroups.com.
Visit this group at https://groups.google.com/group/tlaplus.
To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/ebfd62ea-3e02-7174-36bb-fa596cbc1f42%40lemmster.de.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages