---
name: stack-changes
description: Use when user wants to see what changed in each branch of a git stack (graphite), showing files and lines changed per branch
---

# Stack Changes

Show files and lines changed per branch in a graphite (gt) stack.

## Usage

Run the script directly:

```bash
~/.claude/skills/stack-changes/stack-changes.sh [options]
```

## Options

| Option           | Description                        |
|------------------|------------------------------------|
| `--no-lockfiles` | Exclude lockfiles (*lock*, *.lock) |
| `--no-markdown`  | Exclude markdown files (*.md)      |
| `--help`         | Show help message                  |

## Examples

**Show all changes:**
```bash
~/.claude/skills/stack-changes/stack-changes.sh
```

**Exclude lockfiles and markdown (code-only changes):**
```bash
~/.claude/skills/stack-changes/stack-changes.sh --no-lockfiles --no-markdown
```

## Output

The script outputs a summary for each branch in the stack:
- Branch name
- Number of files changed
- Lines added/removed

Plus a total from main to the current branch.

## Requirements

- Must be in a git repository managed by graphite (gt)
- `gt` CLI must be installed
