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

[PATCH Cogito] Fix file list wrapping of cg-log

From
MHMarcel Holtmann <marcel@holtmann.org>
Date
May 13, 2005, 11:25 UTC
Message-ID
<1115983549.18499.117.camel@pegasus>
Hi Petr,

the attached patch fixes the file list wrapping for the second and following lines by adding two extra spaces. It also corrects the line width counting that is wrong after the first line break.

Regards
Marcel
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Index: cg-log
===================================================================
--- de641904363cd3759f132ee7c0dfaf8a2ee58388/cg-log  (mode:100755)
+++ uncommitted/cg-log  (mode:100755)
@@ -69,6 +69,7 @@
 {
 	tree1="$1"
 	tree2="$2"
+	line=
 	sep="    * $colfiles"
 	# List all files for for the initial commit
 	if [ -z $tree2 ]; then
@@ -84,9 +85,9 @@
 			line="$line$sep$file"
 			echo -n "$file"
 		else
-			line="$file"
+			line="      $file"
 			echo "$coldefault"
-			echo -n "    $colfiles$file"
+			echo -n "      $colfiles$file"
 		fi
 	done
 	echo "$coldefault:"
Message 1 of 1 in “Fix file list wrapping of cg-log”
  1. Fix file list wrapping of cg-logMarcel Holtmann, May 13, 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.