{"thread":{"id":"458","subject":"[PATCH] cogito: Updated cg-status -a","startedAt":"2005-05-03T17:47:26Z","lastAt":"2005-05-03T17:47:26Z","messageCount":1,"participants":["Matt Porter"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"2490","messageId":"20050503104725.A29663@cox.net","threadId":"458","inReplyTo":null,"subject":"[PATCH] cogito: Updated cg-status -a","fromName":"Matt Porter","fromEmail":"mporter@kernel.crashing.org","sentAt":"2005-05-03T17:47:26Z","receivedAt":"2005-05-03T17:47:26Z","isPatch":true,"sender":{"key":"mporter@kernel.crashing.org","avatar":null},"body":"Updated patch versus latest cogito and bug fix for a thinko.\nIf -a is passed, the same output is generated but it also shows\nall modified but uncommitted files as well.\n\nSigned-off-by: Matt Porter <mporter@kernel.crashing.org>\n\n--- aa6233be6d1b8bf42797c409a7c23b50593afc99/cg-status  (mode:100755 sha1:9e7f0e59284a3d15cda35bbd5579c44d8eda05d5)\n+++ ee35a6204e59cf47966080be20d8248a6e4aa3c3/cg-status  (mode:100755 sha1:dc821a1255f012a612aa4d25ffc551c32b017bd9)\n@@ -3,7 +3,9 @@\n # Show status of entries in your working tree.\n # Copyright (c) Petr Baudis, 2005\n #\n-# Takes no arguments.\n+# Takes an optional -a argument which will cause all repository status\n+# to be shown, including modified but uncommitted files\n+\n \n . cg-Xlib\n \n@@ -20,3 +22,16 @@\n \tshift\n done\n ' padding\n+\n+if [ \"$1\" = \"-a\" ]; then\n+\t{\n+\t\tgit-update-cache --refresh\n+\t} | cut -f 1 -d \":\" | xargs sh -c '\n+\twhile [ \"$1\" ]; do\n+\t\ttag=\"M\";\n+\t\tfilename=${1%: *};\n+\t\techo \"$tag $filename\";\n+\t\tshift\n+\tdone\n+\t' padding\n+fi\n"}]}