{"thread":{"id":"16878","subject":"[JGIT PATCH] Expose the advertised refs to ReceivePack hooks","startedAt":"2008-12-27T03:47:01Z","lastAt":"2008-12-27T03:47:01Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"98773","messageId":"20081227034701.GA23268@spearce.org","threadId":"16878","inReplyTo":null,"subject":"[JGIT PATCH] Expose the advertised refs to ReceivePack hooks","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2008-12-27T03:47:01Z","receivedAt":"2008-12-27T03:47:01Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Hooks may want to be able to consider what the client was shown, so\nthey can make decisions based on that information.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n .../org/spearce/jgit/transport/ReceivePack.java    |    5 +++++\n 1 files changed, 5 insertions(+), 0 deletions(-)\n\ndiff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/ReceivePack.java b/org.spearce.jgit/src/org/spearce/jgit/transport/ReceivePack.java\nindex 95519b8..76d11c4 100644\n--- a/org.spearce.jgit/src/org/spearce/jgit/transport/ReceivePack.java\n+++ b/org.spearce.jgit/src/org/spearce/jgit/transport/ReceivePack.java\n@@ -155,6 +155,11 @@ public final RevWalk getRevWalk() {\n \t\treturn walk;\n \t}\n \n+\t/** @return all refs which were advertised to the client. */\n+\tpublic final Map<String, Ref> getAdvertisedRefs() {\n+\t\treturn refs;\n+\t}\n+\n \t/**\n \t * @return true if this instance will verify received objects are formatted\n \t *         correctly. Validating objects requires more CPU time on this side\n-- \n1.6.1.302.gccd4d\n"}]}