{"thread":{"id":"272","subject":"[PATCH] Fix broken diff-cache output on added files","startedAt":"2005-04-23T23:43:42Z","lastAt":"2005-04-23T23:43:42Z","messageCount":1,"participants":["Petr Baudis"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"1435","messageId":"20050423234342.GR13222@pasky.ji.cz","threadId":"272","inReplyTo":null,"subject":"[PATCH] Fix broken diff-cache output on added files","fromName":"Petr Baudis","fromEmail":"pasky@ucw.cz","sentAt":"2005-04-23T23:43:42Z","receivedAt":"2005-04-23T23:43:42Z","isPatch":true,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Added files were errorneously reported with the - prefix by diff-cache,\nobviously leading to great confusion.\n\nSigned-off-by: Petr Baudis <pasky@ucw.cz>\n\nIndex: diff-cache.c\n===================================================================\n--- 099679c62a98433d9d9b38581f39563c9574478e/diff-cache.c  (mode:100644 sha1:b407d753e520fa0b1523d770d98b3015af197275)\n+++ 3df862ae5cc66733dab3d8bd5c4ea359b2ca1884/diff-cache.c  (mode:100644 sha1:2ec6c29ab6b79a10277a2ff9021a2032d656abf0)\n@@ -57,7 +57,7 @@\n \t\t}\n \t\t/* No matching 1-stage (tree) entry? Show the current one as added */\n \t\tif (entries == 1 || !same_name(ce, ac[1])) {\n-\t\t\tshow_file(\"-\", ce);\n+\t\t\tshow_file(\"+\", ce);\n \t\t\tac++;\n \t\t\tentries--;\n \t\t\tcontinue;\n\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nC++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor\n"}]}