git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] cogito: Updated cg-status -a

From
MPMatt Porter <mporter@kernel.crashing.org>
Date
May 3, 2005, 17:47 UTC
Message-ID
<20050503104725.A29663@cox.net>

Updated patch versus latest cogito and bug fix for a thinko. If -a is passed, the same output is generated but it also shows all modified but uncommitted files as well.

Signed-off-by: Matt Porter <mporter@kernel.crashing.org>

--- aa6233be6d1b8bf42797c409a7c23b50593afc99/cg-status (mode:100755 sha1:9e7f0e59284a3d15cda35bbd5579c44d8eda05d5) +++ ee35a6204e59cf47966080be20d8248a6e4aa3c3/cg-status (mode:100755 sha1:dc821a1255f012a612aa4d25ffc551c32b017bd9)

@@ -3,7 +3,9 @@
 # Show status of entries in your working tree.
 # Copyright (c) Petr Baudis, 2005
 #
-# Takes no arguments.
+# Takes an optional -a argument which will cause all repository status
+# to be shown, including modified but uncommitted files
+
 
 . cg-Xlib
 
@@ -20,3 +22,16 @@
 	shift
 done
 ' padding
+
+if [ "$1" = "-a" ]; then
+	{
+		git-update-cache --refresh
+	} | cut -f 1 -d ":" | xargs sh -c '
+	while [ "$1" ]; do
+		tag="M";
+		filename=${1%: *};
+		echo "$tag $filename";
+		shift
+	done
+	' padding
+fi
Message 1 of 1 in “cogito: Updated cg-status -a”
  1. cogito: Updated cg-status -aMatt Porter, May 3, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.