Skip to content

Commit 733377c

Browse files
committedNov 2, 2024
Small fix to example command
1 parent 6e89f1e commit 733377c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎diff-advance/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Run `source setup.sh` or `bash setup.sh` or `./setup.sh` (or `.\setup.ps1` in Po
1515
5. Include `--name-only` option with `git diff` and see the result.
1616
6. With `--name-only`, we get a list of changed files. This can be useful for example when we want to do selective compile/test of changed files instead of a full re-build, given that steps can be compiled/tested independently. In our exercise, there are 3 steps in a pipeline and an utilities file. Let's say we only want to test the pipelines because we're confident enough with the utils to not test them (naughty-list programmer). We can do something like this:
1717

18-
`git diff --name-only | grep '.pipeline' | xargs cat`
18+
`git diff --name-only master | grep '.pipeline' | xargs cat`
1919

2020
This will:
2121
1. Get a list of the changed files

0 commit comments

Comments
 (0)
Failed to load comments.