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

Some Commit Messages Scare git-rev-list

From
DTDarrin Thompson <darrint@progeny.com>
Date
Apr 12, 2006, 13:11 UTC
Message-ID
<1144847462.5213.6.camel@localhost.localdomain>

This scripts exhibits some odd behavior. Apparently git-rev-list mishandles commit messages which do not end in a newline. This as best I can tell this is a problem introduced since 1.1.5.

Here is a script to reproduce the problem:

rm -rf git-test mkdir git-test cd git-test git-init-db echo hello > hello git-add hello

# send scary message to git-commit -F - echo -n "test commit" | git-commit -F - -a echo world > world git-add world git-update-index --add world treeid=$(git-write-tree)

# send scary message directly to git-commit-tree commitid=$(echo -n "another-test" | git-commit-tree $treeid -p HEAD) git-update-ref HEAD $commitid

# see the wreckage git-rev-list --pretty HEAD

Running gitk will also show the problem.

-- Darrin

Next: Linus Torvalds
Message 1 of 5 in “Some Commit Messages Scare git-rev-list”
  1. Darrin ThompsonApr 12, 2006
  2. Linus TorvaldsApr 12, 2006
  3. Junio C HamanoApr 12, 2006
  4. Junio C HamanoApr 12, 2006
  5. Linus TorvaldsApr 12, 2006

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.