Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code
Quiz: The empty diff
After git add you run git diff | claude -p "Review these changes." What will Claude get?
Answer options
- The full diff from the staging area, because the pipe picks the right changes by itself
- Only the request with no diff, so it will confidently tell you about nothing
- The diff of the whole branch against main
- A Git error message, because the staging area blocks git diff
You can check the correct answer by solving this task in the CodeWorlds game.