]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
use xfopen() in more places
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 3 May 2017 10:16:46 +0000 (17:16 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 May 2017 03:33:55 +0000 (12:33 +0900)
commit23a9e0712d76a63c5af1caeb816943f466f0300e
tree1b065a078058d664ed353f6da0c77842381a5645
parentb0a642ac4624740187212aecec62b35a2eab38cb
use xfopen() in more places

xfopen()

 - provides error details
 - explains error on reading, or writing, or whatever operation
 - has l10n support
 - prints file name in the error

Some of these are missing in the places that are replaced with xfopen(),
which is a clear win. In some other places, it's just less code (not as
clearly a win as the previous case but still is).

The only slight regresssion is in remote-testsvn, where we don't report
the file class (marks files) in the error messages anymore. But since
this is a _test_ svn remote transport, I'm not too concerned.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c
builtin/am.c
builtin/commit.c
builtin/fast-export.c
builtin/fsck.c
builtin/merge.c
builtin/pull.c
diff.c
fast-import.c
remote-testsvn.c