How to get all the files you’ve modified in your current branch?
Using your favourite command line terminal, here’s how you do it: > git diff — name-only master..local_branch This will list the files you’ve modified, for example: src/app/home/home.component.html src/app/home/home.component.ts src/app/shared/shared.module.ts How is this helpful you may wonder? Based on the files you’ve changed, you can test the relevant features to: * check if they are valid * detect potential regressions right away e.g. if you are working on the home component but
1 min readApr 28, 2023
Using your favourite command line terminal, here’s how you do it:
git diff — name-only master..local_branch
This will list the files you’ve modified, for example:
src/app/home/home.component.html
src/app/home/home.component.ts
src/app/shared/shared.module.ts
How is this helpful you may wonder?
Based on the files you’ve changed, you can test the relevant features to:
- check if they are valid
- detect potential regressions right away e.g. if you are working on the home component but you have a change in the sign-in component, you can already pounce on the anomaly