I'd like to know if Git be configured to set file dates based on the last commit date?
Currently when I checkout a branch it seems that the file dates are set to the current date.
I'd like to know if Git be configured to set file dates based on the last commit date?
Currently when I checkout a branch it seems that the file dates are set to the current date.
Sure, do it in the post-checkout hook.
This hook can be used to perform repository validity checks, auto-display differences from the previous HEAD if different, or set working dir metadata properties.