1
0
mirror of https://github.com/git/git.git synced 2024-09-28 08:49:45 +02:00
git/vcs-svn
Jonathan Nieder efc749b48f vcs-svn: allow input errors to be detected promptly
The line_buffer library silently flags input errors until
buffer_deinit time; unfortunately, by that point usually errno is
invalid.  Expose the error flag so callers can check for and
report errors early for easy debugging.

	some_error_prone_operation(...);
	if (buffer_ferror(buf))
		return error("input error: %s", strerror(errno));

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2011-03-07 01:32:51 -06:00
..
fast_export.c
fast_export.h
LICENSE
line_buffer.c vcs-svn: allow input errors to be detected promptly 2011-03-07 01:32:51 -06:00
line_buffer.h vcs-svn: allow input errors to be detected promptly 2011-03-07 01:32:51 -06:00
line_buffer.txt
obj_pool.h
repo_tree.c vcs-svn: simplify repo_modify_path and repo_copy 2011-03-07 00:56:50 -06:00
repo_tree.h vcs-svn: simplify repo_modify_path and repo_copy 2011-03-07 00:56:50 -06:00
string_pool.c
string_pool.h
string_pool.txt
svndump.c vcs-svn: simplify repo_modify_path and repo_copy 2011-03-07 00:56:50 -06:00
svndump.h
trp.h
trp.txt