{"thread":{"id":"383","subject":"[PATCH] cogito: cg-status option to show modified/uncommitted files","startedAt":"2005-04-28T22:43:20Z","lastAt":"2005-04-28T22:43:20Z","messageCount":1,"participants":["Matt Porter"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"2107","messageId":"20050428154320.D24498@cox.net","threadId":"383","inReplyTo":null,"subject":"[PATCH] cogito: cg-status option to show modified/uncommitted files","fromName":"Matt Porter","fromEmail":"mporter@kernel.crashing.org","sentAt":"2005-04-28T22:43:20Z","receivedAt":"2005-04-28T22:43:20Z","isPatch":true,"sender":{"key":"mporter@kernel.crashing.org","avatar":null},"body":"Adds a -a option to show all status of the working tree. After hacking\naround I like to see what's new AND what's modified but uncommitted.\n\n-Matt\n\nSigned-off-by: Matt Porter <mporter@kernel.crashing.org>\n\n===================================================================\n--- c3aa1e6b53cc59d5fbe261f3f859584904ae3a63/cg-status  (mode:100755 sha1:c9b69b9d54b6a6756f0ecad5324642eb66810b33)\n+++ uncommitted/cg-status  (mode:100755)\n@@ -3,7 +3,8 @@\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 . cg-Xlib\n \n@@ -20,3 +21,18 @@\n \tshift\n done\n ' padding\n+\n+\n+if [ \"$1\" = \"-a\" ]; then\n+\t{\n+\t\tupdate-cache --refresh\n+\t} | xargs -0 sh -c '\n+while [ \"$1\" ]; do\n+tag=\"M\";\n+filename=${1%: *};\n+echo \"$tag $filename\";\n+shift\n+done\n+' padding\n+fi\n+\n"}]}