This class has all the information about the object store tipicaly .git/objects
Beispiel #1
0
        public static void CheckinObject(string filePath, string storePath)
        {
            ObjectStore store = new ObjectStore (storePath);
            store.Checkin (filePath);

            store.Write ();
        }
Beispiel #2
0
        public static void CheckoutTest(string hash, string objStorePath)
        {
            ObjectStore store = new ObjectStore (objStorePath);

            SHA1 id = new SHA1 (SHA1.FromHexString (hash), false);

            Console.WriteLine ("Hash: " + hash);
            Console.WriteLine ("Id:   " + id.ToHexString ());

            Console.WriteLine ("hash created");

            Tree tree = (Tree) store.Get (id);

            Console.WriteLine ("tree created No. entries: " + tree.Entries.Length);

            store.Checkout (Environment.CurrentDirectory, tree);

            Console.WriteLine ("Checkout done WIIIII!!!");
        }
Beispiel #3
0
 public static void LsTreeTest(string tree, string path)
 {
     ObjectStore store = new ObjectStore (path);
     store.LsTree (tree);
 }