summaryrefslogtreecommitdiff
path: root/src/status.c
diff options
context:
space:
mode:
authorAlan Rogers <alan@github.com>2014-05-20 18:16:04 +1000
committerAlan Rogers <alan@github.com>2014-05-20 18:16:04 +1000
commitf47bc8ff5e844fec15e705e8ebd11bae742b8039 (patch)
treeb85e8aa23622a5e9c3eb21278cb748906b47ef7e /src/status.c
parent9055347944ff13fd5e91de0b29caeecb41c8bff4 (diff)
downloadlibgit2-f47bc8ff5e844fec15e705e8ebd11bae742b8039.tar.gz
Skip unreadable files for now.
Diffstat (limited to 'src/status.c')
-rw-r--r--src/status.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/status.c b/src/status.c
index 8d7612f72..061c9d5e1 100644
--- a/src/status.c
+++ b/src/status.c
@@ -329,8 +329,10 @@ int git_status_list_new(
if (show != GIT_STATUS_SHOW_INDEX_ONLY) {
if ((error = git_diff_index_to_workdir(
- &status->idx2wd, repo, index, &diffopt)) < 0)
+ &status->idx2wd, repo, index, &diffopt)) < 0) {
+ printf("git_diff_index_to_workdir failed with error %d\n", error);
goto done;
+ }
if ((flags & GIT_STATUS_OPT_RENAMES_INDEX_TO_WORKDIR) != 0 &&
(error = git_diff_find_similar(status->idx2wd, &findopt)) < 0)
@@ -407,8 +409,10 @@ int git_status_foreach_ext(
size_t i;
int error = 0;
- if ((error = git_status_list_new(&status, repo, opts)) < 0)
+ if ((error = git_status_list_new(&status, repo, opts)) < 0) {
+ printf("git_status_list_new failed with error %d\n", error);
return error;
+ }
git_vector_foreach(&status->paired, i, status_entry) {
const char *path = status_entry->head_to_index ?