← Back to team overview

kicad-developers team mailing list archive

Re: remove time-stamps to make files more VCS friendly

 

On 12/13/2012 08:58 PM, Pinault Nicolas wrote:
Le 13/12/2012 20:33, Dick Hollenbeck a écrit :
On 12/13/2012 01:00 PM, Kaspar Bumke wrote:
In the .sch files the lines look like this

EESchema Schematic File Version 2  date Tue 11 Dec 2012 20:41:50 GMT

and

Date "11 dec 2012"

I am pretty sure that there are similar ones in the .brd and .lib
files and others. They are the ones that get updated everytime the
files are saved.

Also, we probably should be only talking about the *.kicad_pcb format only. The older one
will fall into dis-use soon.

I guess I don't know if a similar thing is planned for the new format
and now would be a good time to discuss it.
Yes, just save your board with the save as menu, but before you do, pick the "file type"
in the filename dialog as *.kicad_pcb, then get a good look.

I think there's a good argument for a configuration setting, as to whether this is
"save-date" included.

Timestamps have another meaning, let's rather use "save-date".

So we can either a) remove them, b) make their presence configurable, or c) do nothing.


Jean-Pierre, what is your opinion?

a) is easiest.

I vote for solution a)
Or solution b) but more complicated.

I totally agree with Kaspar. When using vcs/dvcs tools, data like date in files are very annoying. Imagine your preferred C++ editor saves C++ files with a header in which date is inserted automatically. Using Bazaar tools would be very problematic.
My 5 cents... This could be improved by using the date of the last modification to the file contents instead of storing the date of the moment the file was saved.

Regards,
Tom


References