-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #972 from wpwoodjr/master
update git-utimes.{1,html} to add --newer flag
- Loading branch information
Showing
4 changed files
with
46 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,33 @@ | ||
.\" 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 | ||
. | ||
Update all files' modification time to their last commit date, except those in working tree or index: | ||
.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\. | ||
. | ||
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> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters