From f1cdc1be989450c3151e04254d3f76720b0974b0 Mon Sep 17 00:00:00 2001 From: BaoCaiH Date: Fri, 26 Apr 2024 13:23:01 +0300 Subject: [PATCH] Fix README's grammar --- diff-advance/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diff-advance/README.md b/diff-advance/README.md index 97d3e15..67481f4 100644 --- a/diff-advance/README.md +++ b/diff-advance/README.md @@ -10,10 +10,10 @@ Run `source setup.sh` or `bash setup.sh` or `./setup.sh` (or `.\setup.ps1` in Po 1. Current branch is `pipeline-improvement`. Use `git diff` to see how it is different from master. 2. Compare `git diff master` and `git diff master pipeline-improvement`. -3. Compare `git diff master pipeline-improvement` and `git diff pipeline-improvement master`. Notice what is being remove and added. +3. Compare `git diff master pipeline-improvement` and `git diff pipeline-improvement master`. Notice what is being removed and added. 4. Include `--word-diff` with `git diff`. In addition to the default, word diff can also be used in different modes, i.e. `--word-diff=color`. See how it is different from normal diff. 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 a utilities file. Let's say we only want to test the pipelines because we're confidence enough with the utils to not test it (naughty-list programmer). We can do something like this: +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 a 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`