/*
* Copyright 2013 Cloud4SOA, www.cloud4soa.eu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package utils;
//import java.io.File;
import java.io.IOException;
/*
import org.eclipse.jgit.*;
import org.eclipse.jgit.api.GitCommand;
import org.eclipse.jgit.api.PushCommand;
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.lib.RepositoryBuilder;
import org.eclipse.jgit.lib.Tree;
import org.eclipse.jgit.lib.TreeEntry;
import org.eclipse.jgit.storage.file.FileRepository;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
*/
/**
*
* @author Ledakis Giannis (SingularLogic)
* @deprecated
*/
public class GitCommandsExecutor {
public void execute() throws IOException{
// JGitText jtext= new JGitText();
// JGitText.get();
//org.eclipse.jgit.api.PushCommand = new org.eclipse.jgit.api.GitCommand<ObjectId>;
// RepositoryBuilder builder = new RepositoryBuilder();
// File git_dir= new File("/my/git/directory");
//Repository repository = builder.setGitDir(git_dir);
//ObjectId head = repository.resolve("HEAD");
// File repoDir = new File("test-git/.git");
/*// open the repository
Repository repo = new Repository(repoDir);
// find the HEAD
Commit head = repo.mapCommit(Constants.HEAD);
// retrieve the tree in HEAD
Tree tree = head.getTree();
// find a file (as a TreeEntry, which contains the blob object id)
TreeEntry entry = tree.findBlobMember("b/test.txt");
// use the blob id to read the file's data
byte[] data = repo.openBlob(entry.getId()).getBytes();
org.eclipse.jgit.transport.BundleWriter = new org.eclipse.jgit.transport.BundleWriter(repo);
String status = (age >= 18) ? "adult" : "minor";*/
// PushCommand push= new org.eclipse.jgit.api.GitCommand<Object>;
// System.out.println(jtext.URINotSupported);
}
}