1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-14 21:23:03 +01:00
git/Documentation/technical
Brandon Casey d6cf61bfd4 close_lock_file(): new function in the lockfile API
The lockfile API is a handy way to obtain a file that is cleaned
up if you die().  But sometimes you would need this sequence to
work:

 1. hold_lock_file_for_update() to get a file descriptor for
    writing;

 2. write the contents out, without being able to decide if the
    results should be committed or rolled back;

 3. do something else that makes the decision --- and this
    "something else" needs the lockfile not to have an open file
    descriptor for writing (e.g. Windows do not want a open file
    to be renamed);

 4. call commit_lock_file() or rollback_lock_file() as
    appropriately.

This adds close_lock_file() you can call between step 2 and 3 in
the above sequence.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2008-01-16 15:35:03 -08:00
..
.gitignore Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-allocation-growing.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-builtin.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-decorate.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-diff.txt Documentation: typofix 2008-01-07 14:02:00 -08:00
api-directory-listing.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-gitattributes.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-grep.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-hash.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-in-core-index.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-index-skel.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-index.sh Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-lockfile.txt close_lock_file(): new function in the lockfile API 2008-01-16 15:35:03 -08:00
api-object-access.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-parse-options.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-path-list.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-quote.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-revision-walking.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-run-command.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-setup.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-strbuf.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-tree-walking.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-xdiff-interface.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
pack-format.txt Documentation: typofix 2008-01-07 14:02:00 -08:00
pack-heuristics.txt Assorted typo fixes 2006-07-09 02:42:41 -07:00
pack-protocol.txt
racy-git.txt racy-git: documentation updates. 2006-12-18 14:18:54 -08:00
send-pack-pipeline.txt Update send-pack pipeline documentation. 2007-01-01 14:35:16 -08:00
shallow.txt Provide some technical documentation for shallow clones 2007-03-19 22:19:29 -07:00
trivial-merge.txt