This flag changes the way a merge commit patch is displayed,\r
in a similar way to the <em>-c</em> option. It implies the <em>-c</em>\r
and <em>-p</em> options and further compresses the patch output\r
- by omitting hunks that show differences from only one\r
- parent, or show the same change from all but one parent\r
- for an Octopus merge. When this optimization makes all\r
- hunks disappear, the commit itself and the commit log\r
- message is not shown, just like in any other "empty diff" case.\r
+ by omitting uninteresting hunks whose the contents in the parents\r
+ have only two variants and the merge result picks one of them\r
+ without modification. When all hunks are uninteresting, the commit\r
+ itself and the commit log message is not shown, just like in any other\r
+ "empty diff" case.\r
</p>\r
</dd>\r
<dt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2008-07-22 09:19:07 UTC\r
+Last updated 2008-07-24 04:02:40 UTC\r
</div>\r
</div>\r
</body>\r
This flag changes the way a merge commit patch is displayed,
in a similar way to the '-c' option. It implies the '-c'
and '-p' options and further compresses the patch output
- by omitting hunks that show differences from only one
- parent, or show the same change from all but one parent
- for an Octopus merge. When this optimization makes all
- hunks disappear, the commit itself and the commit log
- message is not shown, just like in any other "empty diff" case.
+ by omitting uninteresting hunks whose the contents in the parents
+ have only two variants and the merge result picks one of them
+ without modification. When all hunks are uninteresting, the commit
+ itself and the commit log message is not shown, just like in any other
+ "empty diff" case.
--always::
Show the commit itself and the commit log message even
<div class="para"><p>A significantly faster version:</p></div>\r
<div class="listingblock">\r
<div class="content">\r
-<pre><tt>git filter-branch --index-filter 'git update-index --remove filename' HEAD</tt></pre>\r
+<pre><tt>git filter-branch --index-filter 'git rm --cached filename' HEAD</tt></pre>\r
</div></div>\r
<div class="para"><p>Now, you will get the rewritten history saved in HEAD.</p></div>\r
<div class="para"><p>To set a commit (which typically is at the tip of another\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2008-07-06 05:16:46 UTC\r
+Last updated 2008-07-24 04:02:40 UTC\r
</div>\r
</div>\r
</body>\r
A significantly faster version:
--------------------------------------------------------------------------
-git filter-branch --index-filter 'git update-index --remove filename' HEAD
+git filter-branch --index-filter 'git rm --cached filename' HEAD
--------------------------------------------------------------------------
Now, you will get the rewritten history saved in HEAD.
<dd>\r
<p>\r
This flag implies the <em>-c</em> options and further compresses the\r
- patch output by omitting hunks that show differences from only\r
- one parent, or show the same change from all but one parent for\r
- an Octopus merge.\r
+ patch output by omitting uninteresting hunks whose contents in\r
+ the parents have only two variants and the merge result picks\r
+ one of them without modification.\r
</p>\r
</dd>\r
<dt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2008-07-22 09:19:10 UTC\r
+Last updated 2008-07-24 04:02:42 UTC\r
</div>\r
</div>\r
</body>\r
<dd>\r
<p>\r
This resets the metadata used by rerere if a merge resolution is to be\r
-is aborted. Calling <em>git-am --skip</em> or <em>git-rebase [--skip|--abort]</em>\r
+aborted. Calling <em>git-am [--skip|--abort]</em> or <em>git-rebase [--skip|--abort]</em>\r
will automatically invoke this command.\r
</p>\r
</dd>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2008-07-22 09:19:15 UTC\r
+Last updated 2008-07-24 04:02:42 UTC\r
</div>\r
</div>\r
</body>\r
'clear'::
This resets the metadata used by rerere if a merge resolution is to be
-is aborted. Calling 'git-am --skip' or 'git-rebase [--skip|--abort]'
+aborted. Calling 'git-am [--skip|--abort]' or 'git-rebase [--skip|--abort]'
will automatically invoke this command.
'diff'::
<dd>\r
<p>\r
This flag implies the <em>-c</em> options and further compresses the\r
- patch output by omitting hunks that show differences from only\r
- one parent, or show the same change from all but one parent for\r
- an Octopus merge.\r
+ patch output by omitting uninteresting hunks whose contents in\r
+ the parents have only two variants and the merge result picks\r
+ one of them without modification.\r
</p>\r
</dd>\r
<dt>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2008-07-16 03:23:21 UTC\r
+Last updated 2008-07-24 04:02:43 UTC\r
</div>\r
</div>\r
</body>\r
--cc::
This flag implies the '-c' options and further compresses the
- patch output by omitting hunks that show differences from only
- one parent, or show the same change from all but one parent for
- an Octopus merge.
+ patch output by omitting uninteresting hunks whose contents in
+ the parents have only two variants and the merge result picks
+ one of them without modification.
-r::
string_list_append("foo", &list);\r
string_list_append("bar", &list);\r
for (i = 0; i < list.nr; i++)\r
- printf("%s\n", list.items[i].path)</tt></pre>\r
+ printf("%s\n", list.items[i].string)</tt></pre>\r
</div></div>\r
<div class="admonitionblock">\r
<table><tr>\r
</p>\r
</li>\r
</ul></div>\r
-<div class="para"><p>Represents an item of the list. The <tt>path</tt> member is a pointer to the\r
+<div class="para"><p>Represents an item of the list. The <tt>string</tt> member is a pointer to the\r
string, and you may use the <tt>util</tt> member for any purpose, if you want.</p></div>\r
<div class="ilist"><ul>\r
<li>\r
</div>\r
<div id="footer">\r
<div id="footer-text">\r
-Last updated 2008-07-22 09:19:19 UTC\r
+Last updated 2008-07-24 04:02:44 UTC\r
</div>\r
</div>\r
</body>\r
string_list_append("foo", &list);
string_list_append("bar", &list);
for (i = 0; i < list.nr; i++)
- printf("%s\n", list.items[i].path)
+ printf("%s\n", list.items[i].string)
----
NOTE: It is more efficient to build an unsorted list and sort it
* `struct string_list_item`
-Represents an item of the list. The `path` member is a pointer to the
+Represents an item of the list. The `string` member is a pointer to the
string, and you may use the `util` member for any purpose, if you want.
* `struct string_list`