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

[EGIT PATCH] Provide a more JavaBeans-style 'getName' accessor for the id Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>

From
Alex Blewitt <alex.blewitt@gmail.com>
Date
May 9, 2009, 22:57 UTC
Message-ID
<1241909854-11498-1-git-send-email-alex.blewitt@gmail.com>
---
 .../src/org/spearce/jgit/lib/AnyObjectId.java      |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/AnyObjectId.java b/org.spearce.jgit/src/org/spearce/jgit/lib/AnyObjectId.java
index acb3cb5..015042a 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/lib/AnyObjectId.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/lib/AnyObjectId.java
@@ -448,6 +448,12 @@ public final String name() {
 	}
 
 	/**
+	 * @return string form of the SHA-1, in lower case hexadecimal.
+	 */
+	public final String getName() {
+		return name();
+	}
+	/**
 	 * Return unique abbreviation (prefix) of this object SHA-1.
 	 * <p>
 	 * This method is a utility for <code>abbreviate(repo, 8)</code>.
-- 
1.6.2.2
Next: Shawn O. Pearce
Message 1 of 9 in “Provide a more JavaBeans-style 'getName' accessor for the id Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>”
  1. Provide a more JavaBeans-style 'getName' accessor for the id Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>Alex Blewitt, May 9, 2009
  2. Shawn O. PearceMay 10, 2009
  3. Shawn O. PearceAug 10, 2009
  4. Alex BlewittAug 10, 2009
  5. Alex BlewittAug 10, 2009
  6. Shawn O. PearceAug 10, 2009
  7. Alex BlewittAug 11, 2009
  8. Shawn O. PearceAug 12, 2009
  9. Robin RosenbergAug 12, 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.