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

[EGIT PATCH 4/4] Switch usage of AnyObjectId.toString() to new AnyObjectId.name()

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Sep 3, 2008, 21:28 UTC
Message-ID
<1220477294-23268-2-git-send-email-robin.rosenberg@dewire.com>
In-Reply-To
<1220477294-23268-1-git-send-email-robin.rosenberg@dewire.com>
Two more places
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
---
 .../spearce/jgit/lib/T0005_ShallowSpeedTest.java   |    2 +-
 .../org/spearce/jgit/lib/T0006_DeepSpeedTest.java  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0005_ShallowSpeedTest.java b/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0005_ShallowSpeedTest.java
index 3b8c60a..736e363 100644
--- a/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0005_ShallowSpeedTest.java
+++ b/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0005_ShallowSpeedTest.java
@@ -60,7 +60,7 @@ public void testShallowHistoryScan() throws IOException {
 				break;
 			ObjectId parentId = parents[0];
 			commit = db.mapCommit(parentId);
-			commit.getCommitId().toString();
+			commit.getCommitId().name();
 			++n;
 		}
 		assertEquals(12275, n);
diff --git a/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0006_DeepSpeedTest.java b/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0006_DeepSpeedTest.java
index 684bfba..f480b99 100644
--- a/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0006_DeepSpeedTest.java
+++ b/org.spearce.jgit.test/exttst/org/spearce/jgit/lib/T0006_DeepSpeedTest.java
@@ -62,7 +62,7 @@ public void testDeepHistoryScan() throws IOException {
 			commit = db.mapCommit(parentId);
 			TreeEntry m = commit.getTree().findBlobMember("net/netfilter/nf_queue.c");
 			if (m != null)
-				commit.getCommitId().toString();
+				commit.getCommitId().name();
 			++n;
 		}
 
-- 
1.6.0.1.161.g7f314
Previous: Robin RosenbergNext: Robin Rosenberg
Message 4 of 8 in “Switch usage of AnyObjectId.toString() to new AnyObjectId.name()”
  1. 1/2 Switch usage of AnyObjectId.toString() to new AnyObjectId.name()Jonas Fonseca, Sep 3, 2008
  2. Shawn O. PearceSep 3, 2008
  3. 3/4 Switch usage of AnyObjectId.toString() to new AnyObjectId.name() in Eclipse pluginRobin Rosenberg, Sep 3, 2008
  4. 4/4 Switch usage of AnyObjectId.toString() to new AnyObjectId.name()Robin Rosenberg, Sep 3, 2008
  5. Robin RosenbergSep 3, 2008
  6. Shawn O. PearceSep 3, 2008
  7. Jonas FonsecaSep 3, 2008
  8. Shawn O. PearceSep 4, 2008

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.