mirror of
https://github.com/tj/git-extras.git
synced 2026-09-15 18:06:24 -04:00
update git-utimes.{1,html} to add --newer flag
This commit is contained in:
parent
458cb9fdad
commit
8c744569c4
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
||||
<meta http-equiv='content-type' content='text/html;charset=utf8'>
|
||||
<meta name='generator' content='Ronn-NG/v0.9.1 (http://github.com/apjanke/ronn-ng/tree/0.9.1)'>
|
||||
<title>git-utimes(1) - Change files modification time to their last commit date</title>
|
||||
<style type='text/css' media='all'>
|
||||
/* style: man */
|
||||
|
|
@ -69,30 +69,44 @@
|
|||
<li class='tr'>git-utimes(1)</li>
|
||||
</ol>
|
||||
|
||||
<h2 id="NAME">NAME</h2>
|
||||
|
||||
|
||||
<h2 id="NAME">NAME</h2>
|
||||
<p class="man-name">
|
||||
<code>git-utimes</code> - <span class="man-whatis">Change files modification time to their last commit date</span>
|
||||
</p>
|
||||
|
||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
||||
|
||||
<p><code>git-utimes</code></p>
|
||||
<p><code>git-utimes</code> [--newer]</p>
|
||||
|
||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
||||
|
||||
<p> Change files modification time to their last commit date.</p>
|
||||
<p>Change files modification time to their last commit date. Does not touch files that are in the working tree or index.</p>
|
||||
|
||||
<h2 id="OPTIONS">OPTIONS</h2>
|
||||
|
||||
<p> No options needed.</p>
|
||||
<p>--newer</p>
|
||||
|
||||
<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.</p>
|
||||
|
||||
<h2 id="EXAMPLES">EXAMPLES</h2>
|
||||
|
||||
<p> git utimes</p>
|
||||
<dl>
|
||||
<dt>Update all files' modification time to their last commit date, except those in working tree or index:
|
||||
|
||||
<p>$ git utimes</p>
|
||||
</dt>
|
||||
<dd></dd>
|
||||
<dt>As above, but preserve original modification time of files that were committed from local repo:
|
||||
|
||||
<p>$ git utimes --newer</p>
|
||||
</dt>
|
||||
<dd></dd>
|
||||
</dl>
|
||||
|
||||
<h2 id="AUTHOR">AUTHOR</h2>
|
||||
|
||||
<p>Written by Vitaly Chikunov <<a href="mailto:vt@altlinux.org" data-bare-link="true">vt@altlinux.org</a>>, inspired by Stackexchange comments.</p>
|
||||
<p>Written by Vitaly Chikunov <<a href="mailto:vt@altlinux.org" data-bare-link="true">vt@altlinux.org</a>>, inspired by Stackexchange comments. Updated by Bill Wood <<a href="mailto:wpwoodjr@gmail.com" data-bare-link="true">wpwoodjr@gmail.com</a>> to add <code>--newer</code> flag and ignore files in the working tree or index.</p>
|
||||
|
||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||
|
||||
|
|
@ -102,10 +116,9 @@
|
|||
|
||||
<p><<a href="https://github.com/tj/git-extras" data-bare-link="true">https://github.com/tj/git-extras</a>></p>
|
||||
|
||||
|
||||
<ol class='man-decor man-foot man foot'>
|
||||
<li class='tl'></li>
|
||||
<li class='tc'>September 2020</li>
|
||||
<li class='tc'>May 2022</li>
|
||||
<li class='tr'>git-utimes(1)</li>
|
||||
</ol>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue