From 733377c1afdfa274837a59923ead03fa43b51514 Mon Sep 17 00:00:00 2001 From: Jan Krag Date: Sat, 2 Nov 2024 10:26:26 +0100 Subject: [PATCH] Small fix to example command --- diff-advance/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/diff-advance/README.md b/diff-advance/README.md index c9eec171..fe2fa8d2 100644 --- a/diff-advance/README.md +++ b/diff-advance/README.md @@ -15,7 +15,7 @@ Run `source setup.sh` or `bash setup.sh` or `./setup.sh` (or `.\setup.ps1` in Po 5. Include `--name-only` option with `git diff` and see the result. 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: - `git diff --name-only | grep '.pipeline' | xargs cat` + `git diff --name-only master | grep '.pipeline' | xargs cat` This will: 1. Get a list of the changed files