Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow commits to be created without index #63

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Aug 19, 2013

  1. Added CreateBlobFromDisk to Repository.

    Based on http://libgit2.github.com/libgit2/#v0.18.0/group/blob/git_blob_create_fromdisk
    
    CreateBlobFromDisk reads a file specified by its path and creates a
    blob. The Result of this function is the oid of the blob and not a blob
    object. This is to circumvent reading the bytes of the blob into memory.
    FrozenCow committed Aug 19, 2013
    Configuration menu
    Copy the full SHA
    73626b8 View commit details
    Browse the repository at this point in the history
  2. Added CreateTree to Repository.

    CreateTree will create a tree object from an array of TreeEntry. A
    TreeEntry should follow have:
    
    * name: the name/path of the file
    * id: the id of the blob object
    * mode: the mode of the file (as described here: http://libgit2.github.com/libgit2/#v0.18.0/group/treebuilder/git_treebuilder_insert)
    
    This makes use of git_treebuilder_* of libgit2 to create the tree.
    FrozenCow committed Aug 19, 2013
    Configuration menu
    Copy the full SHA
    fb34968 View commit details
    Browse the repository at this point in the history
  3. Added CreateCommit to Repository.

    CreateCommit is based on
    http://libgit2.github.com/libgit2/#v0.18.0/group/commit/git_commit_create.
    
    CreateCommit results in the oid of the commit that was created.
    CreateCommit is called with the following keys:
    
    * updateref: maps to update_ref and can be unused. (optional)
    * author: a signature of the author (optional, committer is used)
    * committer: a signature of the committer
    * message: the message of the commit
    * tree: the id of a tree object
    * parents: an array of parents
    
    A signature has the following keys:
    
    * name: the name of the author/committer
    * email: the email of the author/committer
    * time: the time of the commit (optional)
    * offset: timezone offset of the commit-time (optional)
    FrozenCow committed Aug 19, 2013
    Configuration menu
    Copy the full SHA
    bda45da View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2013

  1. Configuration menu
    Copy the full SHA
    2243320 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2013

  1. Configuration menu
    Copy the full SHA
    dbd1b33 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2013

  1. Renamed 'attributes' of tree-entry to 'filemode'.

    This should unify the naming convention.
    FrozenCow committed Aug 29, 2013
    Configuration menu
    Copy the full SHA
    ab02afe View commit details
    Browse the repository at this point in the history
  2. Unified naming of tree-entries in createTree.

    This allows the use of repo.tree to be passed to createTree.
    FrozenCow committed Aug 29, 2013
    Configuration menu
    Copy the full SHA
    150bd6d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    097236a View commit details
    Browse the repository at this point in the history