Skip to content

Commit 780de4f

Browse files
committed
Update readme to expect newline-delimited output for 'diff'
1 parent 8a56d4b commit 780de4f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,16 @@ Depending on your use case, you may want to determine the point where the branch
236236

237237
Default: `git diff --name-only HEAD~1`
238238

239+
The diff command must produce **newline-delimited output** with one file path per line. This is the format that `git diff --name-only` produces by default. Newline-delimited output is required for filenames containing spaces to be parsed correctly.
240+
241+
Custom diff scripts should follow the same convention — print one path per line to standard output.
242+
239243
#### Sample output
240244

241245
```
242246
README.md
243247
lib/trigger.bash
248+
directory/File Name With Spaces.md
244249
```
245250
246251
#### Example scripts

0 commit comments

Comments
 (0)