Bläddra i källkod

DirCacheEditor: Fix formatting to avoid , at start of line

Change-Id: I1b1d614470c67fe4736fdc9c26ae26fb38dd58b5
tags/v4.2.0.201601211800-r
Shawn Pearce 8 år sedan
förälder
incheckning
110d3ca595
1 ändrade filer med 5 tillägg och 3 borttagningar
  1. 5
    3
      org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEditor.java

+ 5
- 3
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheEditor.java Visa fil

@@ -149,9 +149,11 @@ public class DirCacheEditor extends BaseDirCacheEditor {
if (missing) {
final DirCacheEntry ent = new DirCacheEntry(e.path);
e.apply(ent);
if (ent.getRawMode() == 0)
throw new IllegalArgumentException(MessageFormat.format(JGitText.get().fileModeNotSetForPath
, ent.getPathString()));
if (ent.getRawMode() == 0) {
throw new IllegalArgumentException(MessageFormat.format(
JGitText.get().fileModeNotSetForPath,
ent.getPathString()));
}
fastAdd(ent);
} else {
// Apply to all entries of the current path (different stages)

Laddar…
Avbryt
Spara