{"thread":{"id":"20813","subject":"[PATCH-v2] Make git status print a helpful death message if the disk is full","startedAt":"2009-09-01T20:27:20Z","lastAt":"2009-09-01T20:27:20Z","messageCount":1,"participants":["David Reiss"],"isPatch":true,"patchVersion":2,"patchTotal":null},"messages":[{"id":"122258","messageId":"4A9D83A8.3000400@facebook.com","threadId":"20813","inReplyTo":null,"subject":"[PATCH-v2] Make git status print a helpful death message if the disk is full","fromName":"David Reiss","fromEmail":"dreiss@facebook.com","sentAt":"2009-09-01T20:27:20Z","receivedAt":"2009-09-01T20:27:20Z","isPatch":true,"sender":{"key":"dreiss@facebook.com","avatar":null},"body":"The old behavior just said that it failed.  Now it includes the error\ninformation, which makes it much easier to debug.\n\nThere is a risk that some failure paths could result in misleading error\nmessages that actually make debugging more difficult.\n\nSigned-off-by: David Reiss <dreiss@facebook.com>\n---\nSorry I missed that.\n\n builtin-commit.c |    6 +++---\n 1 files changed, 3 insertions(+), 3 deletions(-)\n\ndiff --git a/builtin-commit.c b/builtin-commit.c\nindex 4bcce06..7feb598 100644\n--- a/builtin-commit.c\n+++ b/builtin-commit.c\n@@ -256,7 +256,7 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)\n \t\trefresh_cache(REFRESH_QUIET);\n \t\tif (write_cache(fd, active_cache, active_nr) ||\n \t\t    close_lock_file(&index_lock))\n-\t\t\tdie(\"unable to write new_index file\");\n+\t\t\tdie_errno(\"unable to write new_index file\");\n \t\tcommit_style = COMMIT_NORMAL;\n \t\treturn index_lock.filename;\n \t}\n@@ -275,7 +275,7 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)\n \t\trefresh_cache(REFRESH_QUIET);\n \t\tif (write_cache(fd, active_cache, active_nr) ||\n \t\t    commit_locked_index(&index_lock))\n-\t\t\tdie(\"unable to write new_index file\");\n+\t\t\tdie_errno(\"unable to write new_index file\");\n \t\tcommit_style = COMMIT_AS_IS;\n \t\treturn get_index_file();\n \t}\n@@ -318,7 +318,7 @@ static char *prepare_index(int argc, const char **argv, const char *prefix)\n \trefresh_cache(REFRESH_QUIET);\n \tif (write_cache(fd, active_cache, active_nr) ||\n \t    close_lock_file(&index_lock))\n-\t\tdie(\"unable to write new_index file\");\n+\t\tdie_errno(\"unable to write new_index file\");\n \n \tfd = hold_lock_file_for_update(&false_lock,\n \t\t\t\t       git_path(\"next-index-%\"PRIuMAX,\n-- \n1.6.0.4\n"}]}