A local git repository using any pluggable backend.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
.gitignore
README.md
decode.js
deflate-browser.js
deflate.js
encode.js
fs-db.js
inflate-browser.js
inflate.js
package.json
repo.js
sha1-browser.js
sha1.js

README.md

git-repo

A local git repository using any pluggable backend.

Commit

{
  hash: hash,
  commit: {
    tree: hash
    parents: [parent1, parent2, ...]
    key: value
    key2: value2
    ...
    message: message
  }
}

Tree

{
  hash: hash,
  tree: {
    path: {mode: mode, hash: hash},
    path2: {mode: mode, hash: hash},
    ...
  ]
}

Blob

{
  hash: hash,
  blob: {
    size: size
    source: source<binary>
  }
}

Tag

{
  hash: hash,
  tag: {
    tree: hash
    key: value
    key2: value2
    ...
    message: message
  }
}