git-commit-vandalism/Documentation/technical
René Scharfe 2fc647004a strbuf: instate cleanup rule in case of non-memory errors
Make all strbuf functions that can fail free() their memory on error if
they have allocated it.  They don't shrink buffers that have been grown,
though.

This allows for easier error handling, as callers only need to call
strbuf_release() if A) the command succeeded or B) if they would have had
to do so anyway because they added something to the strbuf themselves.

Bonus hunk: document strbuf_readlink.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-01-06 22:13:43 -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 api-builtin.txt: update and fix typo 2008-06-22 18:14:17 -07:00
api-decorate.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-diff.txt Correct name of diff_flush() in API documentation 2008-02-28 13:35:09 -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-history-graph.txt log --graph --left-right: show left/right information in place of '*' 2008-05-25 12:06:52 -07: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 api-parse-options.txt: Introduce documentation for parse options API 2008-06-22 18:14:58 -07:00
api-quote.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-remote.txt API documentation for remote.h 2008-02-19 00:27:42 -08:00
api-revision-walking.txt Revision walking documentation: document most important functions 2008-05-31 14:32:56 -07:00
api-run-command.txt run-command.c: remove run_command_v_opt_cd() 2008-10-02 18:02:44 -07:00
api-setup.txt Start preparing the API documents. 2007-12-14 22:29:38 -08:00
api-strbuf.txt strbuf: instate cleanup rule in case of non-memory errors 2009-01-06 22:13:43 -08:00
api-string-list.txt Fix two leftovers from path_list->string_list 2008-07-22 15:28:22 -07: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 Add description of OFS_DELTA to the pack format description 2008-04-06 17:22:46 -07:00
pack-heuristics.txt Assorted typo fixes 2006-07-09 02:42:41 -07:00
pack-protocol.txt Documentation: fix missing links to git(7) 2005-12-12 23:55:09 -08:00
racy-git.txt Fix typos in documentation 2008-12-09 21:39:23 -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 [PATCH] Finish documenting trivial merge rules 2005-09-24 22:05:55 -07:00