From 95c54f6cdb5b9e9dcc0b7301ec185166d83b005e Mon Sep 17 00:00:00 2001 From: Bill Wood Date: Tue, 10 May 2022 20:03:55 -0400 Subject: [PATCH] update docs due to formatting error in git-utimes man page --- man/git-utimes.1 | 15 +++++++++++---- man/git-utimes.html | 17 +++++++---------- man/git-utimes.md | 4 ++-- 3 files changed, 20 insertions(+), 16 deletions(-) diff --git a/man/git-utimes.1 b/man/git-utimes.1 index 2a9783a..f141002 100644 --- a/man/git-utimes.1 +++ b/man/git-utimes.1 @@ -12,12 +12,19 @@ Change files modification time to their last commit date\. Does not touch files .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" -.TP Update all files' modification time to their last commit date, except those in working tree or index: - -.TP +.IP "" 4 +.nf +$ git utimes +.fi +.IP "" 0 +.P As above, but preserve original modification time of files that were committed from local repo: - +.IP "" 4 +.nf +$ git utimes \-\-newer +.fi +.IP "" 0 .SH "AUTHOR" 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" diff --git a/man/git-utimes.html b/man/git-utimes.html index 259c84e..9414dbc 100644 --- a/man/git-utimes.html +++ b/man/git-utimes.html @@ -91,18 +91,15 @@

EXAMPLES

-
-
Update all files' modification time to their last commit date, except those in working tree or index: +

Update all files' modification time to their last commit date, except those in working tree or index:

-

$ git utimes

-
-
-
As above, but preserve original modification time of files that were committed from local repo: +
$ git utimes
+
-

$ git utimes --newer

-
-
-
+

As above, but preserve original modification time of files that were committed from local repo:

+ +
$ git utimes --newer
+

AUTHOR

diff --git a/man/git-utimes.md b/man/git-utimes.md index 9e9cf36..38d4129 100644 --- a/man/git-utimes.md +++ b/man/git-utimes.md @@ -17,11 +17,11 @@ git-utimes(1) -- Change files modification time to their last commit date ## EXAMPLES - * Update all files' modification time to their last commit date, except those in working tree or index: +Update all files' modification time to their last commit date, except those in working tree or index: $ git utimes - * As above, but preserve original modification time of files that were committed from local repo: +As above, but preserve original modification time of files that were committed from local repo: $ git utimes --newer