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

Re: [PATCH JGIT] Compute the author/commiter name and email from the git configuration

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 4, 2009, 01:01 UTC
Message-ID
<20090204010116.GB23383@spearce.org>
In-Reply-To
<200902040155.15206.robin.rosenberg.lists@dewire.com>
Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:
Show 10 quoted lines
> onsdag 04 februari 2009 00:20:03 skrev Johannes Schindelin:
> > According to
> > 
> > http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#getenv(java.lang.String)
> > 
> > getenv() is deprecated.  However, in later editions (Java5 and later, to 
> > be precise), that deprecation seems to be lifted...
> 
> It was worse, it wasn't even implemented. You got a runtime exception back then (1.3 or 1.4).
> So now it's fine.

FWIW, it worked in 1.3 and returned correct data on platforms that had a notion of "environment" (POSIX, Windows, not Mac OS 9). It was only 1.4 that threw a RuntimeException.

That was a HUGE mistake on the Sun developer's part. IMHO, 1.4 should have always returned NULL instead of throwing RuntimeException. Most applications had ways to work around not getting a particular value from the environment, e.g. if the end-user didn't set something. But they weren't prepared to handle a new class of RuntimeException coming out of a method in System.

-- 
Shawn.
Previous: Robin RosenbergNext: Shawn O. Pearce
Message 5 of 10 in “Compute the author/commiter name and email from the git configuration”
  1. Compute the author/commiter name and email from the git configurationYann Simon, Feb 3, 2009
  2. Shawn O. PearceFeb 3, 2009
  3. Johannes SchindelinFeb 3, 2009
  4. Robin RosenbergFeb 4, 2009
  5. Shawn O. PearceFeb 4, 2009
  6. Shawn O. PearceFeb 4, 2009
  7. Robin RosenbergFeb 4, 2009
  8. Yann SimonFeb 4, 2009
  9. Yann SimonFeb 4, 2009
  10. Yann SimonFeb 4, 2009

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.