Skip to content

git_diff: include untracked files #64

Description

@cf-pages

Targeted: 0.5.0 (reliability program). Baseline: release/0.3.0.

git_diff only runs git diff / git diff --cached, so untracked files are invisible — while apply_patch's Add File produces exactly untracked files. A model cannot use git_diff to verify the file it just created.

  • Include untracked files by default (synthesize an all-additions diff, e.g. git diff --no-index /dev/null <file> or by reading the file), controllable via include_untracked (default true).
  • Respect the existing max_bytes budget; keep consistency with git_status, which already lists untracked paths.
  • Test: Add Filegit_diff shows the new file's content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions