Skip to content

Fix batdiff not showing output when run from subdirectory#144

Open
davidbeesley wants to merge 1 commit intoeth-p:masterfrom
davidbeesley:fix-batdiff-subdirectory
Open

Fix batdiff not showing output when run from subdirectory#144
davidbeesley wants to merge 1 commit intoeth-p:masterfrom
davidbeesley:fix-batdiff-subdirectory

Conversation

@davidbeesley
Copy link

When running batdiff from a subdirectory of a git repo, no output was shown. This happened because git diff --name-only returns paths relative to the repo root, but the file existence check was performed from the current directory.

Fix by changing to the repo root after ensure_git_directory.

When running batdiff from a subdirectory of a git repo, no output was
shown. This happened because git diff --name-only returns paths relative
to the repo root, but the file existence check was performed from the
current directory.

Fix by changing to the repo root after ensure_git_directory.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant