thoughtworks / talisman

Using a pre-commit hook, Talisman validates the outgoing changeset for things that look suspicious — such as tokens, passwords, and private keys.
https://thoughtworks.github.io/talisman/
MIT License
1.89k stars 241 forks source link

Override user's `diff.noprefix` config #399

Closed redhoyasa closed 1 year ago

redhoyasa commented 1 year ago

Purpose

Approach

Override the user's diff.noprefix config by forcing talisman to add src-prefix and dst-prefix flags when calling git diff

Screenshot

Screenshot 2022-10-12 at 4 30 50 PM

redhoyasa commented 1 year ago

Hi @jmatias, could you please take a look at this?

Thanks!

svishwanath-tw commented 1 year ago

@redhoyasa : A test for these changes would be highly appreciated.