diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2010-10-10 17:49:26 -0700 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2010-10-14 00:14:14 +0200 |
commit | 529b2017dff2e0691f3bcdd677c85931724a0def (patch) | |
tree | d2b4eeb488cb10360c7bd552f5b4638de8045c52 /org.eclipse.jgit.pgm/src | |
parent | f8eb7e16aab4f9a63860d58e1ff7692160dcfb9a (diff) | |
download | jgit-529b2017dff2e0691f3bcdd677c85931724a0def.tar.gz jgit-529b2017dff2e0691f3bcdd677c85931724a0def.zip |
Fix three-word command names
Command names like MakeCacheTree weren't coming up with hyphens between
every word, so they read "debug-make-cachetree" rather than the
expected "debug-make-cache-tree". On each lowercase character reset
the lastWasDash flag so the next uppercase will insert a hyphen before
the next word.
Change-Id: I539fabb339e60896165619c307dec71e3317b0d8
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
-rw-r--r-- | org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java index eace2e1f25..d76a59b60c 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/CommandRef.java @@ -93,6 +93,7 @@ public class CommandRef { s.append(Character.toLowerCase(c)); } else { s.append(c); + lastWasDash = false; } } return s.toString(); |