{"id":19797811,"url":"https://github.com/nodegit/test-frozen","last_synced_at":"2025-02-28T10:47:59.756Z","repository":{"id":66169159,"uuid":"482934598","full_name":"nodegit/test-frozen","owner":"nodegit","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-18T17:37:05.000Z","size":5774,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"checkout-test","last_synced_at":"2025-01-11T05:21:32.689Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodegit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-18T17:25:45.000Z","updated_at":"2022-04-18T17:35:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"432528ae-4eac-4780-acd9-78e65a7cdf99","html_url":"https://github.com/nodegit/test-frozen","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodegit%2Ftest-frozen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodegit%2Ftest-frozen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodegit%2Ftest-frozen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodegit%2Ftest-frozen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodegit","download_url":"https://codeload.github.com/nodegit/test-frozen/tar.gz/refs/heads/checkout-test","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241139385,"owners_count":19916464,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T07:26:57.349Z","updated_at":"2025-02-28T10:47:59.731Z","avatar_url":"https://github.com/nodegit.png","language":"JavaScript","readme":"NodeGit\n-------\n\n\u003e Node bindings to the [libgit2](http://libgit2.github.com/) project.\n\n[![Build\nStatus](https://travis-ci.org/tbranyen/nodegit.png)](https://travis-ci.org/nodegit/nodegit)\n\u003ca href=\"https://ci.appveyor.com/project/TimBranyen/nodegit\"\u003e\u003cimg src=\"https://ci.appveyor.com/api/projects/status/e5a5q75l9yfhnfv2/branch/master\" alt=\"Build Status: Windows\" height=\"18\" /\u003e\u003c/a\u003e\n\n**Stable: 0.1.4**\n\nMaintained by Tim Branyen [@tbranyen](http://twitter.com/tbranyen), Michael\nRobinson [@codeofinterest](http://twitter.com/codeofinterest), and Nick Kallen\n[@nk](http://twitter.com/nk), with help from [awesome\ncontributors](https://github.com/tbranyen/nodegit/contributors)!\n\n## API Documentation. ##\n\nhttp://www.nodegit.org/nodegit/\n\n## Getting started. ##\n\nNodeGit will work on most systems out-of-the-box without any native\ndependencies.\n\n``` bash\nnpm install nodegit\n```\n\nIf you encounter problems while installing, you should try the Building from\nsource instructions below.\n\n## Building from source. ##\n\nMinimum dependencies:\n\n- [Python 2](https://www.python.org/)\n\nIf you wish to help contribute to nodegit it is useful to build locally.\n\n``` bash\n# Fetch this project.\ngit clone git://github.com/tbranyen/nodegit.git\n\n# Enter the repository.\ncd nodegit\n\n# Install the template engine, run the code generation script, and install.\nnpm install ejs \u0026\u0026 npm run codegen \u0026\u0026 npm install\n```\n\nIf you encounter errors, you most likely have not configured the dependencies\ncorrectly.\n\n### Installing dependencies: ###\n\n#### Mac OS X ####\n\n- [Install XCode Command Line Tools](http://railsapps.github.io/xcode-command-line-tools.html)\n\n#### Linux ####\n\nUsing APT in Ubuntu:\n\n``` bash\nsudo apt-get install build-essential\n```\n\nUsing Pacman in Arch Linux:\n\n``` bash\nsudo pacman -S base-devel\n```\n\n#### Windows ####\n\n- [Download and install Python](https://www.python.org/download/windows).\n- [Download and install VS Express](http://www.visualstudio.com/downloads/download-visual-studio-vs#d-express-windows-desktop).\n\nYou may have to add a build flag to the installation process to successfully\ninstall.  Try first without, if the build fails, try again with the flag.\n\n*Allegedly the order in which you install Visual Studio could trigger this\nerror.*\n\n``` bash\nnpm install nodegit --msvs_version=2013\n# Or whatever version you've installed.\n```\n\n## API examples. ##\n\n### Cloning a repository and reading a file: ###\n\n``` javascript\nvar clone = require(\"nodegit\").Repo.clone;\n\n// Clone a given repository into a specific folder.\nclone(\"https://github.com/nodegit/nodegit\", \"tmp\", null, function(err, repo) {\n  if (err) {\n    throw err;\n  }\n\n  // Use a known commit sha from this repository.\n  var sha = \"59b20b8d5c6ff8d09518454d4dd8b7b30f095ab5\";\n\n  // Look up this known commit.\n  repo.getCommit(sha, function(err, commit) {\n    if (err) {\n      throw err;\n    }\n\n    // Look up a specific file within that commit.\n    commit.getEntry(\"README.md\", function(err, entry) {\n      if (err) {\n        throw err;\n      }\n\n      // Get the blob contents from the file.\n      entry.getBlob(function(err, blob) {\n        if (err) {\n          throw err;\n        }\n\n        // Show the name, sha, and filesize in byes.\n        console.log(entry.name() + entry.sha() + blob.size() + \"b\");\n\n        // Show a spacer.\n        console.log(Array(72).join(\"=\") + \"\\n\\n\");\n\n        // Show the entire file.\n        console.log(String(blob));\n      });\n    });\n  });\n});\n```\n\n### Emulating git log: ###\n\n``` javascript\nvar open = require(\"nodegit\").Repo.open;\n\n// Open the repository directory.\nopen(\"tmp\", function(err, repo) {\n  if (err) {\n    throw err;\n  }\n\n  // Open the master branch.\n  repo.getMaster(function(err, branch) {\n    if (err) {\n      throw err;\n    }\n\n    // Create a new history event emitter.\n    var history = branch.history();\n\n    // Create a counter to only show up to 9 entries.\n    var count = 0;\n\n    // Listen for commit events from the history.\n    history.on(\"commit\", function(commit) {\n      // Disregard commits past 9.\n      if (++count \u003e= 9) {\n        return;\n      }\n\n      // Show the commit sha.\n      console.log(\"commit \" + commit.sha());\n\n      // Store the author object.\n      var author = commit.author();\n\n      // Display author information.\n      console.log(\"Author:\\t\" + author.name() + \" \u003c\", author.email() + \"\u003e\");\n\n      // Show the commit date.\n      console.log(\"Date:\\t\" + commit.date());\n\n      // Give some space and show the message.\n      console.log(\"\\n    \" + commit.message());\n    });\n\n    // Start emitting events.\n    history.start();\n  });\n});\n```\n\n## Unit tests. ##\n\nYou will need to build locally before running the tests.  See above.\n\n``` bash\nnpm test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodegit%2Ftest-frozen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodegit%2Ftest-frozen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodegit%2Ftest-frozen/lists"}