Git Method Timestamps

S
sean@clipperadams.com
Wed, Jul 14, 2021 9:21 PM

What is the git equivalent to CompiledCode>>#timeStamp? (which returns an empty string)

What is the git equivalent to `CompiledCode>>#timeStamp`? (which returns an empty string)
SV
Sven Van Caekenberghe
Thu, Jul 15, 2021 6:23 AM

Hi Sean,

On 14 Jul 2021, at 23:21, sean@clipperadams.com wrote:

What is the git equivalent to CompiledCode>>#timeStamp? (which returns an empty string)

That does not exist anymore: maintaining a timestamp in source code does not make sense in a time where everything is under source code management. Basically because you could forget to update the timestamp when you change something elsewhere.

However, for source code (classes/methods) to which a repository is connected, you can ask for the git history, which is much more powerful. I don't know how to do this programmatically, but in the IDE click on the method, menu > History.

Here is an example:

Regards,

Sven

Hi Sean, > On 14 Jul 2021, at 23:21, sean@clipperadams.com wrote: > > What is the git equivalent to CompiledCode>>#timeStamp? (which returns an empty string) That does not exist anymore: maintaining a timestamp in source code does not make sense in a time where everything is under source code management. Basically because you could forget to update the timestamp when you change something elsewhere. However, for source code (classes/methods) to which a repository is connected, you can ask for the git history, which is much more powerful. I don't know how to do this programmatically, but in the IDE click on the method, menu > History. Here is an example: Regards, Sven