MAN page from RedHat EL 7 git-tools-2019.11-1.el7.noarch.rpm
Section: User Commands (1)
git-restore-mtime -Restore original modification time of files based on the date of the mostrecent commit that modified them
Restore original modification time of files based on the date of the mostrecent commit that modified them. Useful when generating release tarballs.
- only modify paths (dirs or files) matching PATHSPEC,relative to current directory. Default is to modifyall non-ignored, tracked files.
- -h, --help
- show help message and exit
- suppress informative messages and summary statistics.
- print additional information for each processed file.Overwrites --quiet.
- force execution on trees with uncommitted changes.
- include merge commits. Leads to more recent mtimes andmore files per commit, thus with the same mtime (whichmay or may not be what you want). Including mergecommits may lead to less commits being evaluated (allfiles are found sooner), which improves performance,sometimes substantially. But since merge commits areusually huge, processing them may also take longer,sometimes substantially. By default merge logs areonly used for files missing from regular commit logs.
- pass --first-parent to git whatchanged to hide thesecond parent from the merge commit logs. Only has anyeffect if --merge is also specified or --skip-missingis not specified and there were files not found inregular commit logs.
- do not try to find missing files. If some files werenot found in regular commit logs, by default itretries using merge commit logs for these files (if--merge was not used already). This option disablesthis behavior, which may slightly improve performance,but files found only in merge commits will not beupdated.
- do not update directory mtime for files created,renamed or deleted in it. Note: just modifying a filewill not update its directory mtime.
- test run: do not actually update any file
- use commit time instead of author time
- --work-tree WORKDIR
- specify where the work tree is. Default for mostrepositories is current directory.
- --git-dir GITDIR
- specify where the git repository is. Default for mostrepositories <work-tree>/.git
Rodrigo Silva (MestreLion) linuxAATTrodrigosilva.com
- Positional arguments:
- Optional arguments:
- SEE ALSO
This document was created byman2html,using the manual pages.