<h2>SYNOPSIS</h2>\r
<div class="sectionbody">\r
<div class="verseblock">\r
-<div class="content"><em>git-commit</em> [-a] [-i] [-s] [-v] [(-c | -C) <commit> | -F <file> | -m <msg>]\r
- [-e] [--author <author>] [--] <file>…</div></div>\r
+<div class="content"><em>git-commit</em> [-a] [-s] [-v] [(-c | -C) <commit> | -F <file> | -m <msg>]\r
+ [-e] [--author <author>] [--] [[-i | -o ]<file>…]</div></div>\r
</div>\r
<h2>DESCRIPTION</h2>\r
<div class="sectionbody">\r
</p>\r
</dd>\r
<dt>\r
+-o|--only\r
+</dt>\r
+<dd>\r
+<p>\r
+ Commit only the files specified on the command line.\r
+ This format cannot be used during a merge, nor when the\r
+ index and the latest commit does not match on the\r
+ specified paths to avoid confusion.\r
+</p>\r
+</dd>\r
+<dt>\r
—\r
</dt>\r
<dd>\r
</dt>\r
<dd>\r
<p>\r
- Commit only the files specified on the command line.\r
- This format cannot be used during a merge, nor when the\r
- index and the latest commit does not match on the\r
- specified paths to avoid confusion.\r
+ Files to be committed. The meaning of these is\r
+ different between <tt>--include</tt> and <tt>--only</tt>. Without\r
+ either, it defaults <tt>--only</tt> semantics.\r
</p>\r
</dd>\r
</dl>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 07-Feb-2006 08:04:29 UTC\r
+Last updated 14-Feb-2006 07:59:59 UTC\r
</div>\r
</div>\r
</body>\r
SYNOPSIS
--------
[verse]
-'git-commit' [-a] [-i] [-s] [-v] [(-c | -C) <commit> | -F <file> | -m <msg>]
- [-e] [--author <author>] [--] <file>...
+'git-commit' [-a] [-s] [-v] [(-c | -C) <commit> | -F <file> | -m <msg>]
+ [-e] [--author <author>] [--] [[-i | -o ]<file>...]
DESCRIPTION
-----------
commit the whole index. This is the traditional
behaviour.
---::
- Do not interpret any more arguments as options.
-
-<file>...::
+-o|--only::
Commit only the files specified on the command line.
This format cannot be used during a merge, nor when the
index and the latest commit does not match on the
specified paths to avoid confusion.
+--::
+ Do not interpret any more arguments as options.
+
+<file>...::
+ Files to be committed. The meaning of these is
+ different between `--include` and `--only`. Without
+ either, it defaults `--only` semantics.
+
If you make a commit and then found a mistake immediately after
that, you can recover from it with gitlink:git-reset[1].
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
<head>\r
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
-<meta name="generator" content="AsciiDoc 7.0.1" />\r
+<meta name="generator" content="AsciiDoc 7.0.2" />\r
<style type="text/css">\r
/* Debug borders */\r
p, li, dt, dd, div, pre, h1, h2, h3, h4, h5, h6 {\r
</td>\r
<td class="hlist2">\r
to be killed\r
- ? other\r
+</td>\r
+</tr>\r
+<tr>\r
+<td class="hlist1">\r
+?\r
+</td>\r
+<td class="hlist2">\r
+other\r
</td>\r
</tr>\r
</table></div>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 21-Jan-2006 23:50:18 PDT\r
+Last updated 14-Feb-2006 07:59:59 UTC\r
</div>\r
</div>\r
</body>\r
R:: removed/deleted
C:: modified/changed
K:: to be killed
- ? other
+ ?:: other
--full-name::
When run from a subdirectory, the command usually