summaryrefslogtreecommitdiffstats
path: root/git-status.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-12-09 10:19:33 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-12-09 10:19:33 +0000
commit942b35ec890f6a54de52b7f6f6f067572ba11201 (patch)
treeb0db10f0375695f10527fb9ae60ecca0b5096bc2 /git-status.html
parent00b8b63aed8bf4125893dccb3bacec74f8a2d892 (diff)
downloadgit-htmldocs-942b35ec890f6a54de52b7f6f6f067572ba11201.tar.gz
Autogenerated HTML docs for v1.5.3.7-1141-g4eb3
Diffstat (limited to 'git-status.html')
-rw-r--r--git-status.html31
1 files changed, 18 insertions, 13 deletions
diff --git a/git-status.html b/git-status.html
index fa89d1cf9..870a6d98d 100644
--- a/git-status.html
+++ b/git-status.html
@@ -276,18 +276,19 @@ git-status(1) Manual Page
</div>
<h2>DESCRIPTION</h2>
<div class="sectionbody">
-<p>Examines paths in the working tree that has changes unrecorded
-to the index file, and changes between the index file and the
-current HEAD commit. The former paths are what you _could_
-commit by running <em>git add</em> before running <em>git
-commit</em>, and the latter paths are what you _would_ commit by
-running <em>git commit</em>.</p>
-<p>If there is no path that is different between the index file and
-the current HEAD commit, the command exits with non-zero
-status.</p>
+<p>Displays paths that have differences between the index file and the
+current HEAD commit, paths that have differences between the working
+tree and the index file, and paths in the working tree that are not
+tracked by git (and are not ignored by <a href="gitignore.html">gitignore(5)</a>). The first
+are what you _would_ commit by running <tt>git commit</tt>; the second and
+third are what you _could_ commit by running <tt>git add</tt> before running
+<tt>git commit</tt>.</p>
<p>The command takes the same set of options as <tt>git-commit</tt>; it
shows what would be committed if the same options are given to
<tt>git-commit</tt>.</p>
+<p>If there is no path that is different between the index file and
+the current HEAD commit (i.e., there is nothing to commit by running
+<tt>git-commit</tt>), the command exits with non-zero status.</p>
<p>If any paths have been touched in the working tree (that is,
their modification times have changed) but their contents and
permissions are identical to those in the index file, the command
@@ -298,10 +299,11 @@ contains many paths that have been touched but not modified.</p>
<h2>OUTPUT</h2>
<div class="sectionbody">
<p>The output from this command is designed to be used as a commit
-template comments, and all the output lines are prefixed with <em>#</em>.</p>
+template comment, and all the output lines are prefixed with <em>#</em>.</p>
<p>The paths mentioned in the output, unlike many other git commands, are
-made relative to the current directory, if you are working in a
-subdirectory (this is on purpose, to help cutting and pasting).</p>
+made relative to the current directory if you are working in a
+subdirectory (this is on purpose, to help cutting and pasting). See
+the status.relativePaths config option below.</p>
</div>
<h2>CONFIGURATION</h2>
<div class="sectionbody">
@@ -309,6 +311,9 @@ subdirectory (this is on purpose, to help cutting and pasting).</p>
mean the same thing and the latter is kept for backward
compatibility) and <tt>color.status.&lt;slot&gt;</tt> configuration variables
to colorize its output.</p>
+<p>If the config variable <tt>status.relativePaths</tt> is set to false, then all
+paths shown are relative to the repository root, not to the current
+directory.</p>
</div>
<h2>See Also</h2>
<div class="sectionbody">
@@ -329,7 +334,7 @@ Junio C Hamano &lt;junkio@cox.net&gt;.</p>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 07-Dec-2007 09:49:19 UTC
+Last updated 09-Dec-2007 10:19:07 UTC
</div>
</div>
</body>