<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/rebase.c, branch v2.26.1</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.26.1</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.26.1'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-02-10T18:52:10Z</updated>
<entry>
<title>pull --rebase/remote rename: document and honor single-letter abbreviations rebase types</title>
<updated>2020-02-10T18:52:10Z</updated>
<author>
<name>Bert Wesarg</name>
<email>bert.wesarg@googlemail.com</email>
</author>
<published>2020-01-27T07:04:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=88f8576eda2880587fb4487ba469d909dbe35a7b'/>
<id>urn:sha1:88f8576eda2880587fb4487ba469d909dbe35a7b</id>
<content type='text'>
When 46af44b07d (pull --rebase=&lt;type&gt;: allow single-letter abbreviations
for the type, 2018-08-04) landed in Git, it had the side effect that
not only 'pull --rebase=&lt;type&gt;' accepted the single-letter abbreviations
but also the 'pull.rebase' and 'branch.&lt;name&gt;.rebase' configurations.

However, 'git remote rename' did not honor these single-letter
abbreviations when reading the 'branch.*.rebase' configurations.

We now document the single-letter abbreviations and both code places
share a common function to parse the values of 'git pull --rebase=*',
'pull.rebase', and 'branches.*.rebase'.

The only functional change is the handling of the `branch_info::rebase`
value. Before it was an unsigned enum, thus the truth value could be
checked with `branch_info::rebase != 0`. But `enum rebase_type` is
signed, thus the truth value must now be checked with
`branch_info::rebase &gt;= REBASE_TRUE`

Signed-off-by: Bert Wesarg &lt;bert.wesarg@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
