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

git's rev-parse.c function show_datestring presumes gnu date

From
Randal L. Schwartz <merlyn@stonehenge.com>
Date
Nov 14, 2005, 23:02 UTC
Message-ID
<86zmo6vnnj.fsf@blue.stonehenge.com>

git-rev-parse calls GNU date externally for --since, --after, --before, and --until, which will fail on at least OpenBSD and Mac OSX (Darwin).

At a minimum, this code can be commented out on such platforms. Better would be to have some sort of suitable replacement.

Perhaps the Makefile can test if "date" is GNU date as well.
-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Next: Linus Torvalds
Message 1 of 3 in “git's rev-parse.c function show_datestring presumes gnu date”
  1. Randal L. SchwartzNov 14, 2005
  2. Linus TorvaldsNov 14, 2005
  3. Linus TorvaldsNov 15, 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.