1

Lazarus generates 3 file types for projects - *.lpr, *.lpi and *.lps. The first 2 files are necessary.

Should I keep *.lps files in version control system or should I include *.lps files in global ignore list?

kludg
  • 27,213
  • 5
  • 67
  • 118
  • 1
    [`Documentation`](http://wiki.freepascal.org/IDE_Window:_Project_Options#Save_session_information_in) says that the .lps file is useful if the .lpi file is under version control. – LU RD Nov 09 '13 at 08:07
  • If only Delphi stored the active project target/arch in a separate file ..... – David Heffernan Nov 09 '13 at 08:33
  • @LURD yes, it is some 'private' file, so excluding .lps from version control is useful as it will keep my fellow developers file untouched ... btw other programming IDEs simple use a 'private' folder or filename/extension to give a hint – mjn Nov 09 '13 at 19:32

2 Answers2

2

IMO, no if you are not sharing the projects. Due to the FAQ, the lps files are "Lazarus Program Session - Personal data like cursor positions, source editor files, personal build modes. stored in XML".

RBA
  • 12,337
  • 16
  • 79
  • 126
1

This old, but as I am starting with use hg, I had the same question.

It seems best to NOT store .lps file in version control systems.

References:

(Also wiki.freepascal.org/file_types and forum.lazarus.freepascal.org/index.php?topic=9298.0)

desliem
  • 11
  • 1