git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [JGIT PATCH] Typo in implementation of pack protocol
@ 2008-08-21 10:36 Mike Ralphson
  2008-08-21 14:50 ` Shawn O. Pearce
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Ralphson @ 2008-08-21 10:36 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: git, Mike Ralphson, Marek Zawirski

cgit's receive-pack.c has never had the corresponding typo.
Fix up method and member names to match.

Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
---
 .../spearce/jgit/transport/BasePackConnection.java |    2 +-
 .../jgit/transport/BasePackPushConnection.java     |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java b/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java
index 52f3f48..14fffc3 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java
@@ -144,7 +144,7 @@ for (String c : line.substring(nul + 1).split(" "))
 					line = line.substring(0, nul);
 				}
 
-				if (line.equals("capabilties^{}")) {
+				if (line.equals("capabilities^{}")) {
 					// special line from git-receive-pack to show
 					// capabilities when there are no refs to advertise
 					continue;
diff --git a/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackPushConnection.java b/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackPushConnection.java
index 6d95eaf..a2d5b6f 100644
--- a/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackPushConnection.java
+++ b/org.spearce.jgit/src/org/spearce/jgit/transport/BasePackPushConnection.java
@@ -118,7 +118,7 @@ if (sentCommand && capableReport)
 
 	private void writeCommands(final Collection<RemoteRefUpdate> refUpdates,
 			final ProgressMonitor monitor) throws IOException {
-		final String capabilties = enableCapabilties();
+		final String capabilities = enableCapabilities();
 		for (final RemoteRefUpdate rru : refUpdates) {
 			if (!capableDeleteRefs && rru.isDelete()) {
 				rru.setStatus(Status.REJECTED_NODELETE);
@@ -136,7 +136,7 @@ if (!capableDeleteRefs && rru.isDelete()) {
 			sb.append(rru.getRemoteName());
 			if (!sentCommand) {
 				sentCommand = true;
-				sb.append(capabilties);
+				sb.append(capabilities);
 			}
 
 			pckOut.writeString(sb.toString());
@@ -151,7 +151,7 @@ if (monitor.isCancelled())
 		outNeedsEnd = false;
 	}
 
-	private String enableCapabilties() {
+	private String enableCapabilities() {
 		final StringBuilder line = new StringBuilder();
 		capableReport = wantCapability(line, CAPABILITY_REPORT_STATUS);
 		capableDeleteRefs = wantCapability(line, CAPABILITY_DELETE_REFS);
-- 
1.5.6.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [JGIT PATCH] Typo in implementation of pack protocol
  2008-08-21 10:36 [JGIT PATCH] Typo in implementation of pack protocol Mike Ralphson
@ 2008-08-21 14:50 ` Shawn O. Pearce
  2008-08-21 15:00   ` H.Merijn Brand
  0 siblings, 1 reply; 5+ messages in thread
From: Shawn O. Pearce @ 2008-08-21 14:50 UTC (permalink / raw)
  To: Mike Ralphson; +Cc: git, Mike Ralphson, Marek Zawirski

Mike Ralphson <mike@abacus.co.uk> wrote:
> cgit's receive-pack.c has never had the corresponding typo.
> Fix up method and member names to match.

Whoops.  Thanks.
 
> -				if (line.equals("capabilties^{}")) {
> +				if (line.equals("capabilities^{}")) {
>  					// special line from git-receive-pack to show
>  					// capabilities when there are no refs to advertise

-- 
Shawn.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [JGIT PATCH] Typo in implementation of pack protocol
  2008-08-21 14:50 ` Shawn O. Pearce
@ 2008-08-21 15:00   ` H.Merijn Brand
  2008-08-21 15:02     ` H.Merijn Brand
  2008-08-21 15:02     ` Shawn O. Pearce
  0 siblings, 2 replies; 5+ messages in thread
From: H.Merijn Brand @ 2008-08-21 15:00 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Mike Ralphson, git, Mike Ralphson, Marek Zawirski

On Thu, 21 Aug 2008 07:50:12 -0700, "Shawn O. Pearce"
<spearce@spearce.org> wrote:

> Mike Ralphson <mike@abacus.co.uk> wrote:
> > cgit's receive-pack.c has never had the corresponding typo.
> > Fix up method and member names to match.
> 
> Whoops.  Thanks.
>  
> > -				if (line.equals("capabilties^{}")) {
> > +				if (line.equals("capabilities^{}")) {
> >  					// special line from git-receive-pack to show
> >  					// capabilities when there are no refs to advertise

Wouldn't it be nice to stick to ANSI Comments?
I bet AIX xlc will fall over very very fast here

-- 
H.Merijn Brand          Amsterdam Perl Mongers  http://amsterdam.pm.org/
using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00,
11.11, 11.23, and 11.31, SuSE 10.1, 10.2, and 10.3, AIX 5.2, and Cygwin.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [JGIT PATCH] Typo in implementation of pack protocol
  2008-08-21 15:00   ` H.Merijn Brand
@ 2008-08-21 15:02     ` H.Merijn Brand
  2008-08-21 15:02     ` Shawn O. Pearce
  1 sibling, 0 replies; 5+ messages in thread
From: H.Merijn Brand @ 2008-08-21 15:02 UTC (permalink / raw)
  To: Shawn O. Pearce; +Cc: Mike Ralphson, git, Mike Ralphson, Marek Zawirski

On Thu, 21 Aug 2008 17:00:42 +0200, "H.Merijn Brand"
<h.m.brand@xs4all.nl> wrote:

> On Thu, 21 Aug 2008 07:50:12 -0700, "Shawn O. Pearce"
> <spearce@spearce.org> wrote:
> 
> > Mike Ralphson <mike@abacus.co.uk> wrote:
> > > cgit's receive-pack.c has never had the corresponding typo.
> > > Fix up method and member names to match.
> > 
> > Whoops.  Thanks.
> >  
> > > -				if (line.equals("capabilties^{}")) {
> > > +				if (line.equals("capabilities^{}")) {
> > >  					// special line from git-receive-pack to show
> > >  					// capabilities when there are no refs to advertise
> 
> Wouldn't it be nice to stick to ANSI Comments?
> I bet AIX xlc will fall over very very fast here

Ignore that stupid remark. It's java :(


-- 
H.Merijn Brand          Amsterdam Perl Mongers  http://amsterdam.pm.org/
using & porting perl 5.6.2, 5.8.x, 5.10.x, 5.11.x on HP-UX 10.20, 11.00,
11.11, 11.23, and 11.31, SuSE 10.1, 10.2, and 10.3, AIX 5.2, and Cygwin.
http://mirrors.develooper.com/hpux/           http://www.test-smoke.org/
http://qa.perl.org      http://www.goldmark.org/jeff/stupid-disclaimers/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [JGIT PATCH] Typo in implementation of pack protocol
  2008-08-21 15:00   ` H.Merijn Brand
  2008-08-21 15:02     ` H.Merijn Brand
@ 2008-08-21 15:02     ` Shawn O. Pearce
  1 sibling, 0 replies; 5+ messages in thread
From: Shawn O. Pearce @ 2008-08-21 15:02 UTC (permalink / raw)
  To: H.Merijn Brand; +Cc: Mike Ralphson, git, Mike Ralphson, Marek Zawirski

"H.Merijn Brand" <h.m.brand@xs4all.nl> wrote:
> On Thu, 21 Aug 2008 07:50:12 -0700, "Shawn O. Pearce"
> <spearce@spearce.org> wrote:
> 
> > Mike Ralphson <mike@abacus.co.uk> wrote:
> > > cgit's receive-pack.c has never had the corresponding typo.
> > > Fix up method and member names to match.
> > 
> > Whoops.  Thanks.
> >  
> > > -				if (line.equals("capabilties^{}")) {
> > > +				if (line.equals("capabilities^{}")) {
> > >  					// special line from git-receive-pack to show
> > >  					// capabilities when there are no refs to advertise
> 
> Wouldn't it be nice to stick to ANSI Comments?
> I bet AIX xlc will fall over very very fast here

AIX xlc compiles Java code?

This is JGIT, written in Java, not git.git, written in ANSI C...

-- 
Shawn.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-21 15:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-21 10:36 [JGIT PATCH] Typo in implementation of pack protocol Mike Ralphson
2008-08-21 14:50 ` Shawn O. Pearce
2008-08-21 15:00   ` H.Merijn Brand
2008-08-21 15:02     ` H.Merijn Brand
2008-08-21 15:02     ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).