<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/sequencer.c, branch v2.11.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.11.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.11.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-12-14T22:56:46Z</updated>
<entry>
<title>Revert "sequencer: remove useless get_dir() function"</title>
<updated>2016-12-14T22:56:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-12-14T22:56:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ce73bb22d87abe16885b3e871a10de5a261e499f'/>
<id>urn:sha1:ce73bb22d87abe16885b3e871a10de5a261e499f</id>
<content type='text'>
This reverts commit 39784cd3620cc47415c9010ec58a9616f040125c.

The function had only one caller when the "remove useless" was
written, but another topic will soon make heavy use of it and more
importantly the function will return different paths depending on
the value in opts.
</content>
</entry>
<entry>
<title>sequencer: remove useless get_dir() function</title>
<updated>2016-12-09T22:51:16Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2016-12-07T21:51:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=39784cd3620cc47415c9010ec58a9616f040125c'/>
<id>urn:sha1:39784cd3620cc47415c9010ec58a9616f040125c</id>
<content type='text'>
This function is used only once, for the removal of the
directory. It is not used for the creation of the directory nor
anywhere else.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>sequencer: make sequencer abort safer</title>
<updated>2016-12-09T22:50:45Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2016-12-07T21:51:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e41229d962b43208e6bf79e729b400c31697cc9'/>
<id>urn:sha1:1e41229d962b43208e6bf79e729b400c31697cc9</id>
<content type='text'>
In contrast to "git am --abort", a sequencer abort did not check
whether the current HEAD is the one that is expected. This can lead
to loss of work (when not spotted and resolved using reflog before
the garbage collector chimes in).

This behavior is now changed by mimicking "git am --abort".  The
abortion is done but HEAD is not changed when the current HEAD is
not the expected HEAD.

A new file "sequencer/abort-safety" is added to save the expected
HEAD.

The new behavior is only active when --abort is invoked on multiple
picks. The problem does not occur for the single-pick case because
it is handled differently.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/prepare-sequencer'</title>
<updated>2016-11-22T22:15:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-11-22T22:15:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7f1dc9f4cb760e4be9bad64e5a1af9ad42fb7f79'/>
<id>urn:sha1:7f1dc9f4cb760e4be9bad64e5a1af9ad42fb7f79</id>
<content type='text'>
Fix for an error message string.

* js/prepare-sequencer:
  i18n: fix unmatched single quote in error message
</content>
</entry>
<entry>
<title>i18n: fix unmatched single quote in error message</title>
<updated>2016-11-21T17:30:50Z</updated>
<author>
<name>Jiang Xin</name>
<email>worldhello.net@gmail.com</email>
</author>
<published>2016-11-20T12:26:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=358718064be8a81e2e6b536de5f2b7119156f40d'/>
<id>urn:sha1:358718064be8a81e2e6b536de5f2b7119156f40d</id>
<content type='text'>
Fixed unmatched single quote introduced by commit:

 * f56fffef9a sequencer: teach write_message() to append an optional LF

Signed-off-by: Jiang Xin &lt;worldhello.net@gmail.com&gt;
Acked-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/prepare-sequencer'</title>
<updated>2016-11-11T21:56:30Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-11-11T21:56:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5de732f647609de15f51e98b9c9de07115b58b5c'/>
<id>urn:sha1:5de732f647609de15f51e98b9c9de07115b58b5c</id>
<content type='text'>
Silence a clang warning introduced by a recently graduated topic.

* js/prepare-sequencer:
  sequencer: silence -Wtautological-constant-out-of-range-compare
</content>
</entry>
<entry>
<title>sequencer: silence -Wtautological-constant-out-of-range-compare</title>
<updated>2016-11-09T03:59:24Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2016-11-09T03:57:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ae38f2a65abae910ff7ad62861414d4333d01fc'/>
<id>urn:sha1:2ae38f2a65abae910ff7ad62861414d4333d01fc</id>
<content type='text'>
When clang compiles sequencer.c, it complains:

  sequencer.c:632:14: warning: comparison of constant 2 with
    expression of type 'const enum todo_command' is always
    true [-Wtautological-constant-out-of-range-compare]
          if (command &lt; ARRAY_SIZE(todo_command_strings))

This is because "command" is an enum that may only have two
values (0 and 1) and the array in question has two elements.

As it turns out, clang is actually wrong here, at least
according to its own bug tracker:

  https://llvm.org/bugs/show_bug.cgi?id=16154

But it's still worth working around this, as the warning is
present with -Wall, meaning we fail compilation with "make
DEVELOPER=1".

Casting the enum to size_t sufficiently unconfuses clang. As
a bonus, it also catches any possible out-of-bounds access
if the enum takes on a negative value (which shouldn't
happen either, but again, this is a defensive check).

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/ita-empty-commit'</title>
<updated>2016-10-27T21:58:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-27T21:58:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=650360210afbd585f33ed622d3e700b1941b1ddb'/>
<id>urn:sha1:650360210afbd585f33ed622d3e700b1941b1ddb</id>
<content type='text'>
When new paths were added by "git add -N" to the index, it was
enough to circumvent the check by "git commit" to refrain from
making an empty commit without "--allow-empty".  The same logic
prevented "git status" to show such a path as "new file" in the
"Changes not staged for commit" section.

* nd/ita-empty-commit:
  commit: don't be fooled by ita entries when creating initial commit
  commit: fix empty commit creation when there's no changes but ita entries
  diff: add --ita-[in]visible-in-index
  diff-lib: allow ita entries treated as "not yet exist in index"
</content>
</entry>
<entry>
<title>commit: fix empty commit creation when there's no changes but ita entries</title>
<updated>2016-10-24T17:48:23Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-10-24T10:42:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=018ec3c8203ad1aee683840a580cfba7914419b6'/>
<id>urn:sha1:018ec3c8203ad1aee683840a580cfba7914419b6</id>
<content type='text'>
If i-t-a entries are present and there is no change between the index
and HEAD i-t-a entries, index_differs_from() still returns "dirty, new
entries" (aka, the resulting commit is not empty), but cache-tree will
skip i-t-a entries and produce the exact same tree of current
commit.

index_differs_from() is supposed to catch this so we can abort
git-commit (unless --no-empty is specified). Update it to optionally
ignore i-t-a entries when doing a diff between the index and HEAD so
that it would return "no change" in this case and abort commit.

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>sequencer: mark all error messages for translation</title>
<updated>2016-10-21T16:32:35Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2016-10-21T12:26:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=791eb8708f7a98c9f3924b1810c20a9c7dd4c767'/>
<id>urn:sha1:791eb8708f7a98c9f3924b1810c20a9c7dd4c767</id>
<content type='text'>
There was actually only one error message that was not yet marked for
translation.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
