Introduce AnyObjectId.name() to replace standard toString()
commit75d62135d1e16d5e7e3eeece1b3100fad5582dfc
authorJonas Fonseca <fonseca@diku.dk>
Thu, 4 Sep 2008 15:52:56 +0000 (4 08:52 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 4 Sep 2008 15:57:26 +0000 (4 08:57 -0700)
tree30c0738d8f2f8d4df6648b1bd1aa53b020d5bab7
parentf5bc4f57de47dc55ee5d34391b1b7dd595d598c3
Introduce AnyObjectId.name() to replace standard toString()

This allows objects that extend AnyObjectId to override toString() to
their needs. With this it is possible to subclass for example RevCommit
and provide a custom toString() implementation without breaking the
revision walker.

Only the new method is introduced.  Existing callers still must be
modified to use name() instead of an explicit or implicit toString().

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/AnyObjectId.java