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

[PATCH Cogito] Fix cg-log -f behavior

From
MHMarcel Holtmann <marcel@holtmann.org>
Date
May 26, 2005, 20:03 UTC
Message-ID
<1117137826.12036.57.camel@pegasus>
Hi Petr,

the attached patch fixes the wrong behavior when calling cg-log -f. The output format of git-diff-tree has changed and so we need to adapt to that to be able to show the file list again.

Regards
Marcel
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Index: cg-log
===================================================================
--- afc7419cdf2909781fa5dd9d57ea90738e515126/cg-log  (mode:100755)
+++ uncommitted/cg-log  (mode:100755)
@@ -78,7 +78,7 @@
 		list_cmd="git-diff-tree -r $tree1 $tree2"
 	fi
 	echo
-	$list_cmd | while read modes type sha1s file; do
+	$list_cmd | while read mode1 mode2 sha1a sha1b status file; do
 		echo -n "$sep"
 		sep=", "
 		if [ $(echo "$line$sep$file" | wc -c) -le 75 ]; then
Next: Junio C Hamano
Message 1 of 7 in “Fix cg-log -f behavior”
  1. Fix cg-log -f behaviorMarcel Holtmann, May 26, 2005
  2. Junio C HamanoMay 26, 2005
  3. Marcel HoltmannMay 26, 2005
  4. Junio C HamanoMay 26, 2005
  5. Marcel HoltmannMay 26, 2005
  6. Make ls-* output consistent with diff-* output format.Junio C Hamano, May 26, 2005
  7. Linus TorvaldsMay 26, 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.