<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-rebase--interactive.sh, branch v2.17.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.17.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.17.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-03-06T22:54:02Z</updated>
<entry>
<title>Merge branch 'nd/rebase-show-current-patch'</title>
<updated>2018-03-06T22:54:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-03-06T22:54:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ca488c04bdab90668471640baeb0d9140be064c'/>
<id>urn:sha1:9ca488c04bdab90668471640baeb0d9140be064c</id>
<content type='text'>
The new "--show-current-patch" option gives an end-user facing way
to get the diff being applied when "git rebase" (and "git am")
stops with a conflict.

* nd/rebase-show-current-patch:
  rebase: introduce and use pseudo-ref REBASE_HEAD
  rebase: add --show-current-patch
  am: add --show-current-patch
</content>
</entry>
<entry>
<title>Merge branch 'js/fix-merge-arg-quoting-in-rebase-p'</title>
<updated>2018-02-27T18:33:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-02-27T18:33:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8b49408421bba8a928c207991bc197a226b65782'/>
<id>urn:sha1:8b49408421bba8a928c207991bc197a226b65782</id>
<content type='text'>
"git rebase -p" mangled log messages of a merge commit, which is
now fixed.

* js/fix-merge-arg-quoting-in-rebase-p:
  rebase -p: fix incorrect commit message when calling `git merge`.
</content>
</entry>
<entry>
<title>rebase: introduce and use pseudo-ref REBASE_HEAD</title>
<updated>2018-02-12T22:07:59Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-02-11T09:43:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fbd7a23237094c3fb2e249bbcacbbf1e858e79c9'/>
<id>urn:sha1:fbd7a23237094c3fb2e249bbcacbbf1e858e79c9</id>
<content type='text'>
The new command `git rebase --show-current-patch` is useful for seeing
the commit related to the current rebase state. Some however may find
the "git show" command behind it too limiting. You may want to
increase context lines, do a diff that ignores whitespaces...

For these advanced use cases, the user can execute any command they
want with the new pseudo ref REBASE_HEAD.

This also helps show where the stopped commit is from, which is hard
to see from the previous patch which implements --show-current-patch.

Helped-by: Tim Landscheidt &lt;tim@tim-landscheidt.de&gt;
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rebase: add --show-current-patch</title>
<updated>2018-02-12T22:07:59Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-02-11T09:43:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66335298a47032267edd6d6e7a71cc337e46e995'/>
<id>urn:sha1:66335298a47032267edd6d6e7a71cc337e46e995</id>
<content type='text'>
It is useful to see the full patch while resolving conflicts in a
rebase. The only way to do it now is

    less .git/rebase-*/patch

which could turn out to be a lot longer to type if you are in a
linked worktree, or not at top-dir. On top of that, an ordinary user
should not need to peek into .git directory. The new option is
provided to examine the patch.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rebase -p: fix incorrect commit message when calling `git merge`.</title>
<updated>2018-02-08T22:31:57Z</updated>
<author>
<name>Gregory Herrero</name>
<email>gregory.herrero@oracle.com</email>
</author>
<published>2018-02-08T20:42:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ed5144d7eb63a0e0e71d3b281e69e953abbf0365'/>
<id>urn:sha1:ed5144d7eb63a0e0e71d3b281e69e953abbf0365</id>
<content type='text'>
Since commit dd6fb0053 ("rebase -p: fix quoting when calling `git
merge`"), commit message of the merge commit being rebased is passed to
the merge command using a subshell executing 'git rev-parse --sq-quote'.

Double quotes are needed around this subshell so that, newlines are
kept for the git merge command.

Before this patch, following merge message:

    "Merge mybranch into mynewbranch

    Awesome commit."

becomes:

    "Merge mybranch into mynewbranch Awesome commit."

after a rebase -p.

Fixes: "dd6fb0053 rebase -p: fix quoting when calling `git merge`"
Reported-by: Jamie Iles &lt;jamie.iles@oracle.com&gt;
Suggested-by: Vegard Nossum &lt;vegard.nossum@oracle.com&gt;
Suggested-by: Quentin Casasnovas &lt;quentin.casasnovas@oracle.com&gt;
Signed-off-by: Gregory Herrero &lt;gregory.herrero@oracle.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rebase: add --allow-empty-message option</title>
<updated>2018-02-07T19:26:46Z</updated>
<author>
<name>Genki Sky</name>
<email>sky@genki.is</email>
</author>
<published>2018-02-04T20:08:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6c612b528a22fe9d4cad8807e36d18f2f0fea2c'/>
<id>urn:sha1:a6c612b528a22fe9d4cad8807e36d18f2f0fea2c</id>
<content type='text'>
This option allows commits with empty commit messages to be rebased,
matching the same option in git-commit and git-cherry-pick. While empty
log messages are frowned upon, sometimes one finds them in older
repositories (e.g. translated from another VCS [0]), or have other
reasons for desiring them. The option is available in git-commit and
git-cherry-pick, so it is natural to make other git tools play nicely
with them. Adding this as an option allows the default to be "give the
user a chance to fix", while not interrupting the user's workflow
otherwise [1].

  [0]: https://stackoverflow.com/q/8542304
  [1]: https://public-inbox.org/git/7vd33afqjh.fsf@alter.siamese.dyndns.org/

To implement this, add a new --allow-empty-message flag. Then propagate
it to all calls of 'git commit', 'git cherry-pick', and 'git rebase--helper'
within the rebase scripts.

Signed-off-by: Genki Sky &lt;sky@genki.is&gt;
Reviewed-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/fix-merge-arg-quoting-in-rebase-p'</title>
<updated>2018-01-10T22:01:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-01-10T22:01:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bc4efaf10306f23600649d4988eac0d4b2e216b7'/>
<id>urn:sha1:bc4efaf10306f23600649d4988eac0d4b2e216b7</id>
<content type='text'>
"git rebase -p -X&lt;option&gt;" did not propagate the option properly
down to underlying merge strategy backend.

* js/fix-merge-arg-quoting-in-rebase-p:
  rebase -p: fix quoting when calling `git merge`
</content>
</entry>
<entry>
<title>rebase -p: fix quoting when calling `git merge`</title>
<updated>2018-01-05T20:26:01Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2018-01-04T21:31:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd6fb0053ce5b6923505e64993d8061484665962'/>
<id>urn:sha1:dd6fb0053ce5b6923505e64993d8061484665962</id>
<content type='text'>
It has been reported that strategy arguments are not passed to `git
merge` correctly when rebasing interactively, preserving merges.

The reason is that the strategy arguments are already quoted, and then
quoted again.

This fixes https://github.com/git-for-windows/git/issues/1321

Original-patch-by: Kim Gybels &lt;kgybels@infogroep.be&gt;
Also-reported-by: Matwey V. Kornilov &lt;matwey.kornilov@gmail.com&gt;
Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rebase: do not continue when the todo list generation failed</title>
<updated>2017-12-27T20:33:38Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2017-12-22T23:55:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9336281c692c0f3b3e1f91ac226fc2a3e0574359'/>
<id>urn:sha1:9336281c692c0f3b3e1f91ac226fc2a3e0574359</id>
<content type='text'>
This is a *really* long-standing bug. As a matter of fact, this bug has
been with us from the very beginning of `rebase -i`: 1b1dce4bae7 (Teach
rebase an interactive mode, 2007-06-25), where the output of `rev-list`
was piped to `sed` (and any failure of the `rev-list` process would go
completely undetected).

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rebase -i -x: add exec commands via the rebase--helper</title>
<updated>2017-12-05T18:20:51Z</updated>
<author>
<name>Liam Beguin</name>
<email>liambeguin@gmail.com</email>
</author>
<published>2017-12-05T17:52:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0cce4a2756eb2c66544615e5ccd74671afb33256'/>
<id>urn:sha1:0cce4a2756eb2c66544615e5ccd74671afb33256</id>
<content type='text'>
Recent work on `git-rebase--interactive` aims to convert shell code to
C. Even if this is most likely not a big performance enhancement, let's
convert it too since a coming change to abbreviate command names
requires it to be updated.

Signed-off-by: Liam Beguin &lt;liambeguin@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
