From 8c744569c4dca3a72facb857731b8145874a0cc0 Mon Sep 17 00:00:00 2001 From: Bill Wood Date: Tue, 10 May 2022 15:30:28 -0400 Subject: [PATCH 1/3] update git-utimes.{1,html} to add --newer flag --- man/git-utimes.1 | 32 +++++++++++++++----------------- man/git-utimes.html | 35 ++++++++++++++++++++++++----------- 2 files changed, 39 insertions(+), 28 deletions(-) diff --git a/man/git-utimes.1 b/man/git-utimes.1 index f6d82bb..2a9783a 100644 --- a/man/git-utimes.1 +++ b/man/git-utimes.1 @@ -1,28 +1,26 @@ -.\" generated with Ronn/v0.7.3 -.\" http://github.com/rtomayko/ronn/tree/0.7.3 -. -.TH "GIT\-UTIMES" "1" "September 2020" "" "Git Extras" -. +.\" generated with Ronn-NG/v0.9.1 +.\" http://github.com/apjanke/ronn-ng/tree/0.9.1 +.TH "GIT\-UTIMES" "1" "May 2022" "" "Git Extras" .SH "NAME" \fBgit\-utimes\fR \- Change files modification time to their last commit date -. .SH "SYNOPSIS" -\fBgit\-utimes\fR -. +\fBgit\-utimes\fR [\-\-newer] .SH "DESCRIPTION" -Change files modification time to their last commit date\. -. +Change files modification time to their last commit date\. Does not touch files that are in the working tree or index\. .SH "OPTIONS" -No options needed\. -. +\-\-newer +.P +Preserves the original modification time of files that were committed from the local repo, by only touching files that are newer than their last commit date\. .SH "EXAMPLES" -git utimes -. +.TP +Update all files' modification time to their last commit date, except those in working tree or index: + +.TP +As above, but preserve original modification time of files that were committed from local repo: + .SH "AUTHOR" -Written by Vitaly Chikunov <\fIvt@altlinux\.org\fR>, inspired by Stackexchange comments\. -. +Written by Vitaly Chikunov <\fIvt@altlinux\.org\fR>, inspired by Stackexchange comments\. Updated by Bill Wood <\fIwpwoodjr@gmail\.com\fR> to add \fB\-\-newer\fR flag and ignore files in the working tree or index\. .SH "REPORTING BUGS" <\fIhttps://github\.com/tj/git\-extras/issues\fR> -. .SH "SEE ALSO" <\fIhttps://github\.com/tj/git\-extras\fR> diff --git a/man/git-utimes.html b/man/git-utimes.html index 2473e41..259c84e 100644 --- a/man/git-utimes.html +++ b/man/git-utimes.html @@ -1,8 +1,8 @@ - - + + git-utimes(1) - Change files modification time to their last commit date