<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/sequencer.c, branch v2.15.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.15.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.15.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-12-06T17:09:03Z</updated>
<entry>
<title>Merge branch 'pw/sequencer-recover-from-unlockable-index' into maint</title>
<updated>2017-12-06T17:09:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-12-06T17:09:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0175b6e2b9f99101b37cd4b1aa61711678a17105'/>
<id>urn:sha1:0175b6e2b9f99101b37cd4b1aa61711678a17105</id>
<content type='text'>
The sequencer machinery (used by "git cherry-pick A..B", and "git
rebase -i", among other things) would have lost a commit if stopped
due to an unlockable index file, which has been fixed.

* pw/sequencer-recover-from-unlockable-index:
  sequencer: reschedule pick if index can't be locked
</content>
</entry>
<entry>
<title>Merge branch 'rs/sequencer-rewrite-file-cleanup' into maint</title>
<updated>2017-11-21T05:05:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-21T05:05:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1c89be1db2463c970b3b51e576d6f5f5d33c9bfe'/>
<id>urn:sha1:1c89be1db2463c970b3b51e576d6f5f5d33c9bfe</id>
<content type='text'>
Code cleanup.

* rs/sequencer-rewrite-file-cleanup:
  sequencer.c: check return value of close() in rewrite_file()
  sequencer: use O_TRUNC to truncate files
  sequencer: factor out rewrite_file()
</content>
</entry>
<entry>
<title>sequencer: reschedule pick if index can't be locked</title>
<updated>2017-11-16T05:19:12Z</updated>
<author>
<name>Phillip Wood</name>
<email>phillip.wood@dunelm.org.uk</email>
</author>
<published>2017-11-15T10:41:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bd58886775de24ce3a330775a35c3c2e868967ee'/>
<id>urn:sha1:bd58886775de24ce3a330775a35c3c2e868967ee</id>
<content type='text'>
If the index cannot be locked in do_recursive_merge(), issue an
error message and go on to the error recovery codepath, instead of
dying.  When the commit cannot be picked, it needs to be rescheduled
when performing an interactive rebase, but just dying there won't
allow that to happen, and when the user runs 'git rebase --continue'
rather than 'git rebase --abort', the commit gets silently dropped.

Signed-off-by: Phillip Wood &lt;phillip.wood@dunelm.org.uk&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/rebase-i-exec-gitdir-fix' into maint</title>
<updated>2017-11-15T03:04:56Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-15T03:04:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=adfc49e60bb1ae4e1239d8fd5d35127de160058b'/>
<id>urn:sha1:adfc49e60bb1ae4e1239d8fd5d35127de160058b</id>
<content type='text'>
A recent regression in "git rebase -i" that broke execution of git
commands from subdirectories via "exec" insn has been fixed.

* jk/rebase-i-exec-gitdir-fix:
  sequencer: pass absolute GIT_DIR to exec commands
</content>
</entry>
<entry>
<title>sequencer.c: check return value of close() in rewrite_file()</title>
<updated>2017-11-02T04:39:13Z</updated>
<author>
<name>Simon Ruderich</name>
<email>simon@ruderich.org</email>
</author>
<published>2017-11-01T14:45:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9360ec0002369f3194cc5ac75ec50dab4979c988'/>
<id>urn:sha1:9360ec0002369f3194cc5ac75ec50dab4979c988</id>
<content type='text'>
Not checking close(2) can hide errors as not all errors are reported
during the write(2).

Signed-off-by: Simon Ruderich &lt;simon@ruderich.org&gt;
Reviewed-by: René Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>sequencer: pass absolute GIT_DIR to exec commands</title>
<updated>2017-11-02T01:53:23Z</updated>
<author>
<name>Jacob Keller</name>
<email>jacob.keller@gmail.com</email>
</author>
<published>2017-10-31T23:07:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=09d7b6c6fab3ad131b71016b61c80d39d532befd'/>
<id>urn:sha1:09d7b6c6fab3ad131b71016b61c80d39d532befd</id>
<content type='text'>
When we replaced the old shell script based interactive rebase in
commmit 18633e1a22a6 ("rebase -i: use the rebase--helper builtin",
2017-02-09) we introduced a regression of functionality in that the
GIT_DIR would be sent to the environment of the exec command as-is.

This generally meant that it would be passed as "GIT_DIR=.git", which
causes problems for any exec command that wants to run git commands in
a subdirectory.

This isn't a very large regression, since it is not that likely that the
exec command will run a git command, and even less likely that it will
need to do so in a subdir. This regression was discovered by a build
system which uses git-describe to find the current version of the build
system, and happened to do so from the src/ sub directory of the
project.

Fix this by passing in the absolute path of the git directory into the
child environment.

Signed-off-by: Jacob Keller &lt;jacob.keller@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>sequencer: use O_TRUNC to truncate files</title>
<updated>2017-11-01T01:53:19Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-10-31T09:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c8cee96e8a8de2e9c6f12bfac8295f1b9ee29112'/>
<id>urn:sha1:c8cee96e8a8de2e9c6f12bfac8295f1b9ee29112</id>
<content type='text'>
Cut off any previous content of the file to be rewritten by passing the
flag O_TRUNC to open(2) instead of calling ftruncate(2) at the end.
That's easier and shorter.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>sequencer: factor out rewrite_file()</title>
<updated>2017-11-01T01:50:36Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-10-31T09:54:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=73646bfdcb38114a4d9242a02fc180a9877e01bf'/>
<id>urn:sha1:73646bfdcb38114a4d9242a02fc180a9877e01bf</id>
<content type='text'>
Reduce code duplication by extracting a function for rewriting an
existing file.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'js/rebase-i-final'</title>
<updated>2017-10-18T01:19:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-10-18T01:19:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=570676e011d9c8057744e03067553c4802e5adb4'/>
<id>urn:sha1:570676e011d9c8057744e03067553c4802e5adb4</id>
<content type='text'>
Error message fix.

* js/rebase-i-final:
  sequencer.c: unify an error message
</content>
</entry>
<entry>
<title>sequencer.c: unify an error message</title>
<updated>2017-10-17T21:08:29Z</updated>
<author>
<name>Ralf Thielow</name>
<email>ralf.thielow@gmail.com</email>
</author>
<published>2017-10-17T16:20:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=27f90c25a0280ec688956d6eacbb8ecc702ee240'/>
<id>urn:sha1:27f90c25a0280ec688956d6eacbb8ecc702ee240</id>
<content type='text'>
Change an error message in sequencer.c for the case that
we could not write to a file to match other instances.

Signed-off-by: Ralf Thielow &lt;ralf.thielow@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
