dotnet / dotnet/sourcelink

Add RevisionTimeStamp as an MSBuild property

Open
#1,450 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

It could be useful to know what a commit's timestamp was, in addition to the commit hash/id.

This will allow downstream tooling to use it as appropriate. For example, some basic deployment tools only check file timestamps, so it could be interesting to modify files last write time to the commit timestamp, in order to get deterministic outputs, but still compatible with tools that only use timestamps.

I suggest the timestamp should be in ISO8601 format, possibly with an option to force a specific timezone (commit's original timezone or current machine's local timezone, or UTC)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.