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

Re: [PATCH JGIT] Minor : Make ObjectId, RemoteConfig Serializable

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Feb 8, 2009, 02:13 UTC
Message-ID
<200902080313.21785.robin.rosenberg.lists@dewire.com>
In-Reply-To
<320075ff0902061315g3f8b9c9bj92f528e700d59c50@mail.gmail.com>
fredag 06 februari 2009 22:15:29 skrev Nigel Magnay:
> Make AnyObjectId and RemoteConfig Serializable.
> When using jgit as a library in other tools, it's helpful to be able
> to use the nice, tested bits of jgit rather than String, but need to
> be able to serialize them.

A problem (big problem) with serialization is that it often leads to fragile interfaces. One might want to have precise control over the serialization so a change in the implementation doesn't affect compatibility. Serializing AnyObjectId should not depend on the implementation de jour. Second, how do we handle subclasses?

But maybe leaving it this way would be our way of saying that the interface may break at any time, promise.

-- robin
Previous: Nigel MagnayNext: Nigel Magnay
Message 2 of 6 in “Minor : Make ObjectId, RemoteConfig Serializable”
  1. Minor : Make ObjectId, RemoteConfig SerializableNigel Magnay, Feb 6, 2009
  2. Robin RosenbergFeb 8, 2009
  3. Nigel MagnayFeb 8, 2009
  4. Shawn O. PearceFeb 8, 2009
  5. Robin RosenbergFeb 8, 2009
  6. Shawn O. PearceFeb 8, 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.