Skip to content

Commit 6d0ab1c

Browse files
authored
Merge pull request cargo-public-api#797 from cargo-public-api/insta-workaround
README.md: Give tip about `*.snap linguist-language=txt` workaround
2 parents c916ae7 + 9ca2a84 commit 6d0ab1c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ cargo public-api diff ref1..ref2
6767

6868
With a regular `cargo test` that you run in CI you will be able to
6969
* prevent accidental changes to your public API
70-
* review the public API diff of deliberate changes
70+
* review the public API diff of deliberate changes [^1]
71+
72+
[^1]: As a workaround for https://github.com/mitsuhiko/insta/issues/780 you might want to put `*.snap linguist-language=txt` in your `.gitattributes`.
7173

7274
First add the latest versions of the recommended libraries to your `[dev-dependencies]`:
7375

public-api/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ Use [`cargo public-api`](https://github.com/cargo-public-api/cargo-public-api) f
1818

1919
With a regular `cargo test` that you run in CI you will be able to
2020
* prevent accidental changes to your public API
21-
* review the public API diff of deliberate changes
21+
* review the public API diff of deliberate changes [^1]
22+
23+
[^1]: As a workaround for https://github.com/mitsuhiko/insta/issues/780 you might want to put `*.snap linguist-language=txt` in your `.gitattributes`.
2224

2325
First add the latest versions of the recommended libraries to your `[dev-dependencies]`:
2426

0 commit comments

Comments
 (0)