<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/lockfile.c, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-05-01T22:17:31Z</updated>
<entry>
<title>Fix a bunch of pointer declarations (codestyle)</title>
<updated>2009-05-01T22:17:31Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2009-05-01T09:06:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4b25d091ba53c758fae0096b8c0662371857b9d9'/>
<id>urn:sha1:4b25d091ba53c758fae0096b8c0662371857b9d9</id>
<content type='text'>
Essentially; s/type* /type */ as per the coding guidelines.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make the 'lock file' exists error more informative</title>
<updated>2009-03-05T04:35:19Z</updated>
<author>
<name>John Tapsell</name>
<email>johnflux@gmail.com</email>
</author>
<published>2009-03-04T15:00:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bdfd739dac4c109ce360d38d0572d8717a46e795'/>
<id>urn:sha1:bdfd739dac4c109ce360d38d0572d8717a46e795</id>
<content type='text'>
It looks like someone did 90% of the work, then forgot to actually use
the function in one place.

Also the helper function did not use the correct variable.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2009-02-20T07:44:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-20T07:44:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8c5b85ce87d15e4db37a6408f03b0eb71dde080e'/>
<id>urn:sha1:8c5b85ce87d15e4db37a6408f03b0eb71dde080e</id>
<content type='text'>
* maint:
  More friendly message when locking the index fails.
  Document git blame --reverse.
  Documentation: Note file formats send-email accepts
</content>
</entry>
<entry>
<title>More friendly message when locking the index fails.</title>
<updated>2009-02-20T07:22:57Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2009-02-19T12:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e43a6fd3e94888d76779ad79fb568ed180e5fcdf'/>
<id>urn:sha1:e43a6fd3e94888d76779ad79fb568ed180e5fcdf</id>
<content type='text'>
Just saying that index.lock exists doesn't tell the user _what_ to do
to fix the problem. We should give an indication that it's normally
safe to delete index.lock after making sure git isn't running here.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>refactor signal handling for cleanup functions</title>
<updated>2009-01-22T06:46:53Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-01-22T06:03:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=57b235a4bc8884a57c6f863605a54b7bfceb0997'/>
<id>urn:sha1:57b235a4bc8884a57c6f863605a54b7bfceb0997</id>
<content type='text'>
The current code is very inconsistent about which signals
are caught for doing cleanup of temporary files and lock
files. Some callsites checked only SIGINT, while others
checked a variety of death-dealing signals.

This patch factors out those signals to a single function,
and then calls it everywhere. For some sites, that means
this is a simple clean up. For others, it is an improvement
in that they will now properly clean themselves up after a
larger variety of signals.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>chain kill signals for cleanup functions</title>
<updated>2009-01-22T06:46:52Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-01-22T06:02:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4a16d072723b48699ea162da24eff05eba298834'/>
<id>urn:sha1:4a16d072723b48699ea162da24eff05eba298834</id>
<content type='text'>
If a piece of code wanted to do some cleanup before exiting
(e.g., cleaning up a lockfile or a tempfile), our usual
strategy was to install a signal handler that did something
like this:

  do_cleanup(); /* actual work */
  signal(signo, SIG_DFL); /* restore previous behavior */
  raise(signo); /* deliver signal, killing ourselves */

For a single handler, this works fine. However, if we want
to clean up two _different_ things, we run into a problem.
The most recently installed handler will run, but when it
removes itself as a handler, it doesn't put back the first
handler.

This patch introduces sigchain, a tiny library for handling
a stack of signal handlers. You sigchain_push each handler,
and use sigchain_pop to restore whoever was before you in
the stack.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Make sure lockfiles are unlocked when dying on SIGPIPE</title>
<updated>2008-12-21T09:56:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-12-19T01:31:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0693f9ddad3d9af3d3424087557bbddce480ce3f'/>
<id>urn:sha1:0693f9ddad3d9af3d3424087557bbddce480ce3f</id>
<content type='text'>
We cleaned up lockfiles upon receiving the usual suspects HUP, TERM, QUIT
but a wicked user could kill us of asphyxiation by piping our output to a
pipe that does not read.  Protect ourselves by catching SIGPIPE and clean
up the lockfiles as well in such a case.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Enhance hold_lock_file_for_{update,append}() API</title>
<updated>2008-10-19T19:35:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-10-17T22:44:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=acd3b9eca82e38950f94e4708b528b7dae09a7c8'/>
<id>urn:sha1:acd3b9eca82e38950f94e4708b528b7dae09a7c8</id>
<content type='text'>
This changes the "die_on_error" boolean parameter to a mere "flags", and
changes the existing callers of hold_lock_file_for_update/append()
functions to pass LOCK_DIE_ON_ERROR.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rollback lock files on more signals than just SIGINT</title>
<updated>2008-05-31T21:33:59Z</updated>
<author>
<name>Paolo Bonzini</name>
<email>bonzini@gnu.org</email>
</author>
<published>2008-05-29T14:55:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ad5fa3cc0e115a8b111868af2f727322feb144cb'/>
<id>urn:sha1:ad5fa3cc0e115a8b111868af2f727322feb144cb</id>
<content type='text'>
Other signals are also common, for example SIGTERM and SIGHUP.
This patch modifies the lock file mechanism to catch more signals.
It also modifies http-push.c which was missing SIGTERM.

Signed-off-by: Paolo Bonzini &lt;bonzini@gnu.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'db/clone-in-c'</title>
<updated>2008-05-25T20:41:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-05-25T20:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b84c343c885b8168047b2773b5c597d04337d9bd'/>
<id>urn:sha1:b84c343c885b8168047b2773b5c597d04337d9bd</id>
<content type='text'>
* db/clone-in-c:
  Add test for cloning with "--reference" repo being a subset of source repo
  Add a test for another combination of --reference
  Test that --reference actually suppresses fetching referenced objects
  clone: fall back to copying if hardlinking fails
  builtin-clone.c: Need to closedir() in copy_or_link_directory()
  builtin-clone: fix initial checkout
  Build in clone
  Provide API access to init_db()
  Add a function to set a non-default work tree
  Allow for having for_each_ref() list extra refs
  Have a constant extern refspec for "--tags"
  Add a library function to add an alternate to the alternates file
  Add a lockfile function to append to a file
  Mark the list of refs to fetch as const

Conflicts:

	cache.h
	t/t5700-clone-reference.sh
</content>
</entry>
</feed>
