promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Aider

/diff

Shows the diff of all file changes since the last chat message.

/diff shows the changes made to the code since the last message sent.

โœ… WHEN TO USE IT?

Check Aider's last change before continuing

/diff โ€” after a code change, quickly review exactly what was changed

Understand what an auto-commit contained

/diff right after an automatically committed change, to see its exact scope

โ›” WHEN NOT TO?

Wanting to undo an unwanted change

/diff only displays changes, it doesn't change anything.

Better: Use /undo to revert the last Aider commit

Wanting to see changes from several messages back

The docs say /diff shows changes since the last message, not the whole session history.

Better: Use /git to run e.g. git log or git diff directly in the chat

SOURCES