<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-rebase.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>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: 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>rebase: rebasing can also be done when HEAD is detached</title>
<updated>2017-12-19T18:02:47Z</updated>
<author>
<name>Kaartic Sivaraam</name>
<email>kaartic.sivaraam@gmail.com</email>
</author>
<published>2017-12-16T09:03:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=08e66700dff55640d4698c081ab3732528563396'/>
<id>urn:sha1:08e66700dff55640d4698c081ab3732528563396</id>
<content type='text'>
Attempting to rebase when the HEAD is detached and is already
up to date with upstream (so there's nothing to do), the
following message is shown

        Current branch HEAD is up to date.

which is clearly wrong as HEAD is not a branch.

Handle the special case of HEAD correctly to give a more precise
error message.

Signed-off-by: Kaartic Sivaraam &lt;kaartic.sivaraam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Kaartic Sivaraam &lt;kaartic.sivaraam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rebase: distinguish user input by quoting it</title>
<updated>2017-12-19T18:02:44Z</updated>
<author>
<name>Kaartic Sivaraam</name>
<email>kaartic.sivaraam@gmail.com</email>
</author>
<published>2017-12-16T09:03:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ca7de7b12a13c4531485788b07259a2e241f8159'/>
<id>urn:sha1:ca7de7b12a13c4531485788b07259a2e241f8159</id>
<content type='text'>
Signed-off-by: Kaartic Sivaraam &lt;kaartic.sivaraam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Kaartic Sivaraam &lt;kaartic.sivaraam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rebase: consistently use branch_name variable</title>
<updated>2017-12-19T18:02:14Z</updated>
<author>
<name>Kaartic Sivaraam</name>
<email>kaartic.sivaraam@gmail.com</email>
</author>
<published>2017-12-16T09:03:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3a9156adc774f28b3b0f880cdd285a7e01118d15'/>
<id>urn:sha1:3a9156adc774f28b3b0f880cdd285a7e01118d15</id>
<content type='text'>
The variable "branch_name" holds the &lt;branch&gt; parameter in "git
rebase &lt;upstream&gt; &lt;branch&gt;", but one codepath did not use it after
assigning $1 to it (instead it kept using $1).  Make it use the
variable consistently.

Also, update an error message to say there is no such branch or
commit, as we are expecting either of them, and not limiting
ourselves to a branch name.

Signed-off-by: Kaartic Sivaraam &lt;kaartic.sivaraam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Kaartic Sivaraam &lt;kaartic.sivaraam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ks/rebase-no-git-foo'</title>
<updated>2017-11-27T02:06:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-27T02:06:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=88e2efcbc415f234d38e6e1c59c8d8ae03c989b3'/>
<id>urn:sha1:88e2efcbc415f234d38e6e1c59c8d8ae03c989b3</id>
<content type='text'>
Mentions of "git-rebase" and "git-am" (dashed form) still remained
in end-user visible strings emitted by the "git rebase" command;
they have been corrected.

* ks/rebase-no-git-foo:
  git-rebase: clean up dashed-usages in messages
</content>
</entry>
<entry>
<title>Merge branch 'tz/redirect-fix'</title>
<updated>2017-11-27T02:06:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-27T02:06:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dec01eee45f4275f1b9115947452cbd0964a661a'/>
<id>urn:sha1:dec01eee45f4275f1b9115947452cbd0964a661a</id>
<content type='text'>
A few scripts (both in production and tests) incorrectly redirected
their error output.  These have been corrected.

* tz/redirect-fix:
  rebase: fix stderr redirect in apply_autostash()
  t/lib-gpg: fix gpgconf stderr redirect to /dev/null
</content>
</entry>
<entry>
<title>git-rebase: clean up dashed-usages in messages</title>
<updated>2017-11-21T00:34:13Z</updated>
<author>
<name>Kaartic Sivaraam</name>
<email>kaartic.sivaraam@gmail.com</email>
</author>
<published>2017-11-20T15:26:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=82cb775c069642ca66f9703e196447242a6d4ea7'/>
<id>urn:sha1:82cb775c069642ca66f9703e196447242a6d4ea7</id>
<content type='text'>
Signed-off-by: Kaartic Sivaraam &lt;kaartic.sivaraam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
