Skip to content

Commit dfc006f

Browse files
committed
Add docs and a CHANGELOG entry for --only option
1 parent b747dd4 commit dfc006f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
## [Unreleased]
22

3+
- Add `--only` option to only include specific files or directories in the diff.
4+
35
## [0.5.0] - 2025-03-10
46

57
- Don't abort process on bundle check failure.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,14 @@ Skip specific files or directories during the diff.
9696
rails-diff generated scaffold Post --skip app/views app/helpers
9797
```
9898

99+
#### --only <files/directories>
100+
101+
Only include specific files or directories in the diff.
102+
103+
```bash
104+
rails-diff generated scaffold Post --only app/models app/controllers
105+
```
106+
99107
#### --clear-cache/--no-cache
100108

101109
Clear the cache directory to force cloning Rails and regenerating the Rails template app.

0 commit comments

Comments
 (0)