]> git.proxmox.com Git - libgit2.git/commit - src/errors.c
error-handling: On-disk config file backend
authorVicent Martí <tanoku@gmail.com>
Fri, 9 Mar 2012 18:55:50 +0000 (19:55 +0100)
committerVicent Martí <tanoku@gmail.com>
Fri, 9 Mar 2012 19:09:22 +0000 (20:09 +0100)
commitdda708e78f3c3f43d814d46c29ab9f2b9d47ed5c
tree60a6e01583c15209a42740a46e182ac7cbc893de
parent6af24ce31f43c3621f11720704a078058665bc3f
error-handling: On-disk config file backend

Includes:

- Proper error reporting when encountering syntax errors in a
config file (file, line number, column).

- Rewritten `config_write`, now with 99% less goto-spaghetti

- Error state in `git_filebuf`: filebuf write functions no longer
need to be checked for error returns. If any of the writes performed
on a buffer fail, the last call to `git_filebuf_commit` or
`git_filebuf_hash` will fail accordingly and set the appropiate error
message. Baller!
include/git2/errors.h
src/common.h
src/config.c
src/config_file.c
src/errors.c
src/filebuf.c
src/filebuf.h
src/hashtable.c
src/posix.c
src/util.h