<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/sequencer.h, 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-10-21T16:32:34Z</updated>
<entry>
<title>sequencer: get rid of the subcommand field</title>
<updated>2016-10-21T16:32:34Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2016-10-21T12:24:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2863584f5cf98c5f768e24f4841e3df14cbea59a'/>
<id>urn:sha1:2863584f5cf98c5f768e24f4841e3df14cbea59a</id>
<content type='text'>
The subcommands are used exactly once, at the very beginning of
sequencer_pick_revisions(), to determine what to do. This is an
unnecessary level of indirection: we can simply call the correct
function to begin with. So let's do that.

While at it, ensure that the subcommands return an error code so that
they do not have to die() all over the place (bad practice for library
functions...).

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>sequencer: plug memory leaks for the option values</title>
<updated>2016-10-21T16:31:53Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2016-10-21T12:24:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03a4e260e2bf4eebd7ea6658d24507fbf80f3ecd'/>
<id>urn:sha1:03a4e260e2bf4eebd7ea6658d24507fbf80f3ecd</id>
<content type='text'>
The sequencer is our attempt to lib-ify cherry-pick. Yet it behaves
like a one-shot command when it reads its configuration: memory is
allocated and released only when the command exits.

This is kind of okay for git-cherry-pick, which *is* a one-shot
command. All the work to make the sequencer its work horse was
done to allow using the functionality as a library function, though,
including proper clean-up after use.

To remedy that, take custody of the option values in question,
allocating and duping literal constants as needed and freeing them
at end.

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>sequencer: use memoized sequencer directory path</title>
<updated>2016-10-17T18:52:23Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2016-10-14T13:17:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8a2a0f534141cf6d2fa63fe3f84acbc4763c6754'/>
<id>urn:sha1:8a2a0f534141cf6d2fa63fe3f84acbc4763c6754</id>
<content type='text'>
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>sequencer: use static initializers for replay_opts</title>
<updated>2016-10-17T18:52:23Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2016-10-14T13:15:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ee624c0d3ff54e86a44cddf1d4ea6278b7a4f65c'/>
<id>urn:sha1:ee624c0d3ff54e86a44cddf1d4ea6278b7a4f65c</id>
<content type='text'>
This change is not completely faithful: instead of initializing all fields
to 0, we choose to initialize command and subcommand to -1 (instead of
defaulting to REPLAY_REVERT and REPLAY_NONE, respectively). Practically,
it makes no difference at all, but future-proofs the code to require
explicit assignments for both fields.

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>Merge branch 'jc/conflict-hint' into cc/interpret-trailers-more</title>
<updated>2014-11-10T17:56:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-11-10T17:56:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=216d29ef257e48f95bc14765d5da17e7854a3109'/>
<id>urn:sha1:216d29ef257e48f95bc14765d5da17e7854a3109</id>
<content type='text'>
* jc/conflict-hint:
  merge &amp; sequencer: turn "Conflicts:" hint into a comment
  builtin/commit.c: extract ignore_non_trailer() helper function
  merge &amp; sequencer: unify codepaths that write "Conflicts:" hint
  builtin/merge.c: drop a parameter that is never used
  git-tag.txt: Add a missing hyphen to `-s`
</content>
</entry>
<entry>
<title>merge &amp; sequencer: unify codepaths that write "Conflicts:" hint</title>
<updated>2014-10-24T18:34:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-24T18:34:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=75c961b767ec061696634c1079dbe5f1a9e10f93'/>
<id>urn:sha1:75c961b767ec061696634c1079dbe5f1a9e10f93</id>
<content type='text'>
Two identical loops in suggest_conflicts() in merge, and
do_recursive_merge() in sequencer, can use a single helper function
extracted from the latter that prepares the "Conflicts:" hint that
is meant to remind the user the paths for which merge conflicts had
to be resolved to write a better commit log message.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>cherry-pick, revert: add the --gpg-sign option</title>
<updated>2014-01-27T23:15:52Z</updated>
<author>
<name>Nicolas Vigier</name>
<email>boklm@mars-attacks.org</email>
</author>
<published>2014-01-24T00:50:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3253553e12d40da3bca818528f49a63c95f43aa3'/>
<id>urn:sha1:3253553e12d40da3bca818528f49a63c95f43aa3</id>
<content type='text'>
Signed-off-by: Nicolas Vigier &lt;boklm@mars-attacks.org&gt;
Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>sequencer.c: teach append_signoff how to detect duplicate s-o-b</title>
<updated>2013-02-12T19:17:10Z</updated>
<author>
<name>Brandon Casey</name>
<email>drafnel@gmail.com</email>
</author>
<published>2013-02-12T10:17:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bab4d1097c8be7d688a53b992232063dbf300fd4'/>
<id>urn:sha1:bab4d1097c8be7d688a53b992232063dbf300fd4</id>
<content type='text'>
Teach append_signoff how to detect a duplicate s-o-b in the commit footer.
This is in preparation to unify the append_signoff implementations in
log-tree.c and sequencer.c.

Fixes test in t3511.

Signed-off-by: Brandon Casey &lt;bcasey@nvidia.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/make-static'</title>
<updated>2012-09-18T21:37:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-09-18T21:37:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06e211acc61c52a2e1709ea8b62a0b0f6dcb492b'/>
<id>urn:sha1:06e211acc61c52a2e1709ea8b62a0b0f6dcb492b</id>
<content type='text'>
Turn many file-scope private symbols to static to reduce the
global namespace contamination.

* jc/make-static:
  sequencer.c: mark a private file-scope symbol as static
  ident.c: mark private file-scope symbols as static
  trace.c: mark a private file-scope symbol as static
  wt-status.c: mark a private file-scope symbol as static
  read-cache.c: mark a private file-scope symbol as static
  strbuf.c: mark a private file-scope symbol as static
  sha1-array.c: mark a private file-scope symbol as static
  symlinks.c: mark private file-scope symbols as static
  notes.c: mark a private file-scope symbol as static
  rerere.c: mark private file-scope symbols as static
  graph.c: mark private file-scope symbols as static
  diff.c: mark a private file-scope symbol as static
  commit.c: mark a file-scope private symbol as static
  builtin/notes.c: mark file-scope private symbols as static
</content>
</entry>
<entry>
<title>sequencer.c: mark a private file-scope symbol as static</title>
<updated>2012-09-16T06:20:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-09-16T06:20:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=250f2492a408be1ed79c563f304a0d43752d032c'/>
<id>urn:sha1:250f2492a408be1ed79c563f304a0d43752d032c</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
