MCPcopy Index your code
hub / github.com/christkv/node-git

github.com/christkv/node-git @V0.1.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release V0.1.5 ↗ · + Follow
155 symbols 287 edges 70 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

build status

Introduction

This is a library for Git written in Node.js. It's as close a port of grit http://github.com/mojombo/grit.

The idea is to allow for manipulation of git repositories by the node.js application. Not everything is implemented directly in node-git. Some of the stuff is using the native git command line instead of direct javascript code. Also it's fairly synchronous right now but that will hopefully change a little by little over time as it gets more stable and I start using it in real life scenarios.

Github information

The source code is available at http://github.com/christkv/node-git. You can either clone the repository or download a tarball of the latest release.

Once you have the source you can test the driver by running

$ make test

On windows:

PS > node.exe .\node_modules\nodeunit\bin\nodeunit .\test

Examples

For simple examples of usage look at the tests included in the repository.

Notes

The current version is basic git support, don't expect everything to work as you expect it off the bat.

License

Copyright 2009 - 2010 Christian Amor Kvalheim.

  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.

Core symbols most depended-on inside this repo

readByte
called by 77
lib/zlib/zlib.js
readBits
called by 18
lib/zlib/zlib.js
chomp
called by 14
lib/git/git.js
fixture
called by 14
test/test_git_basic.js
linesshift
called by 12
lib/git/commit.js
add_file
called by 12
lib/git/repository.js
fixture
called by 11
test/test_repo.js
lazy_reader
called by 9
lib/git/commit.js

Shape

Function 155

Languages

TypeScript97%
Ruby3%

Modules by API surface

lib/git/repository.js17 symbols
lib/zlib/zlib.js14 symbols
benchmarks/benchmark.js11 symbols
lib/git/pack_storage.js9 symbols
lib/git/git.js7 symbols
test/diff/test_diff.js6 symbols
lib/diff/hunk.js6 symbols
lib/git/status.js5 symbols
lib/git/git_file_operations.js5 symbols
lib/git/file_index.js5 symbols
lib/git/commit.js5 symbols
test/test_tree.js4 symbols

For agents

$ claude mcp add node-git \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact