Package org.eclipse.jgit.errors

Examples of org.eclipse.jgit.errors.NoWorkTreeException


   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public File getIndexFile() throws NoWorkTreeException {
    if (isBare())
      throw new NoWorkTreeException();
    return indexFile;
  }
View Full Code Here


   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public File getWorkTree() throws NoWorkTreeException {
    if (isBare())
      throw new NoWorkTreeException();
    return workTree;
  }
View Full Code Here

   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public String readMergeCommitMsg() throws IOException, NoWorkTreeException {
    if (isBare() || getDirectory() == null)
      throw new NoWorkTreeException();

    File mergeMsgFile = new File(getDirectory(), Constants.MERGE_MSG);
    try {
      return RawParseUtils.decode(IO.readFully(mergeMsgFile));
    } catch (FileNotFoundException e) {
View Full Code Here

   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public List<ObjectId> readMergeHeads() throws IOException, NoWorkTreeException {
    if (isBare() || getDirectory() == null)
      throw new NoWorkTreeException();

    byte[] raw = readGitDirectoryFile(Constants.MERGE_HEAD);
    if (raw == null)
      return null;

View Full Code Here

   *             See {@link #isBare()}.
   */
  public ObjectId readCherryPickHead() throws IOException,
      NoWorkTreeException {
    if (isBare() || getDirectory() == null)
      throw new NoWorkTreeException();

    byte[] raw = readGitDirectoryFile(Constants.CHERRY_PICK_HEAD);
    if (raw == null)
      return null;

View Full Code Here

   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public GitIndex getIndex() throws IOException, NoWorkTreeException {
    if (isBare())
      throw new NoWorkTreeException();
    if (index == null) {
      index = new GitIndex(this);
      index.read();
    } else {
      index.rereadIfNecessary();
View Full Code Here

   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public File getIndexFile() throws NoWorkTreeException {
    if (isBare())
      throw new NoWorkTreeException();
    return indexFile;
  }
View Full Code Here

   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public File getWorkTree() throws NoWorkTreeException {
    if (isBare())
      throw new NoWorkTreeException();
    return workTree;
  }
View Full Code Here

   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public String readMergeCommitMsg() throws IOException, NoWorkTreeException {
    if (isBare() || getDirectory() == null)
      throw new NoWorkTreeException();

    File mergeMsgFile = new File(getDirectory(), Constants.MERGE_MSG);
    try {
      return RawParseUtils.decode(IO.readFully(mergeMsgFile));
    } catch (FileNotFoundException e) {
View Full Code Here

   *             if this is bare, which implies it has no working directory.
   *             See {@link #isBare()}.
   */
  public List<ObjectId> readMergeHeads() throws IOException, NoWorkTreeException {
    if (isBare() || getDirectory() == null)
      throw new NoWorkTreeException();

    byte[] raw = readGitDirectoryFile(Constants.MERGE_HEAD);
    if (raw == null)
      return null;

View Full Code Here

TOP

Related Classes of org.eclipse.jgit.errors.NoWorkTreeException

Copyright © 2018 www.massapicom. 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.