Package org.eclipse.jgit.dircache

Examples of org.eclipse.jgit.dircache.DirCache.commit()


    final DirCache cache = db.readDirCache();
    if (!cache.lock())
      throw die(CLIText.get().failedToLockIndex);
    cache.read();
    cache.write();
    if (!cache.commit())
      throw die(CLIText.get().failedToCommitIndex);
  }
}
View Full Code Here


    final DirCache cache = db.readDirCache();
    if (!cache.lock())
      throw die(CLIText.get().failedToLockIndex);
    cache.read();
    cache.write();
    if (!cache.commit())
      throw die(CLIText.get().failedToCommitIndex);
  }
}
View Full Code Here

        final DirCache editor = e.getValue();
        monitor.setTaskName(NLS.bind(
            CoreText.AssumeUnchangedOperation_writingIndex, db
                .getDirectory()));
        editor.write();
        editor.commit();
      }
    } catch (RuntimeException e) {
      throw new CoreException(Activator.error(CoreText.UntrackOperation_failed, e));
    } catch (IOException e) {
      throw new CoreException(Activator.error(CoreText.UntrackOperation_failed, e));
View Full Code Here

        DirCacheEntry entry = index.getEntry(fileName);

        if (entry != null) {
          entry.setAssumeValid(assumeUnchanged);
          index.write();
          index.commit();
          return entry.getPathString();
        }
      } catch (IOException e) {
        throw new JGitInternalException(e.getMessage(), e);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.