On Sun, Jun 13, 2021 at 6:27 PM <perditi...@gmail.com> wrote:

> ...
> If anyone has suggestions for how to get git to set timestamps on files, I
> would be greatful.  I currently use diffs and git history to see changes.
> ...
>

 After some suggestions and research I found a decent compromise.

Using git-tools, the file timestamps can easily be set to the last commit
date and time (instead of preferred last modified time but better than
checkout time).
It can be found at https://github.com/MestreLion/git-tools and works on
Windows and Linux as it is Python based.  For Linux it is packaged for
several flavors and can be installed easily.  For Windows you need to
download it and either install Python or bind Python with it and copy it to
where git will find it.

After clone/pull with no local changes, run "git restore-mtime" and voila
decent file times.

See also
https://stackoverflow.com/questions/2458042/restore-a-files-modification-time-in-git
for other suggestions.

Jeremy
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to