@synstack/git
Version:
Git utilities for AI prompting and automation
31 lines (21 loc) • 661 B
Markdown
for AI prompting and automation
> [!NOTE]
> The `ls` function is available through [@synstack/fs](../fs/README.md) for convenience.
This package provides a small set of Git operations commonly needed when working with AI tools and automation scripts:
```typescript
import { ls, show } from "@synstack/git";
// Get all git-relevant files in your project
const files = await ls();
// View specific commit changes
const commitDetails = await show("449b7730436026243936a0a2f37c6d3474fcad3b");
```
```bash
npm install @synstack/git
yarn add @synstack/git
pnpm add @synstack/git
```
Git utilities