We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 297817b commit 088c7feCopy full SHA for 088c7fe
src/git.md
@@ -508,6 +508,18 @@ See [the docs for `--color-moved`](https://git-scm.com/docs/git-diff#Documentati
508
See [the relevant section for PR authors](#git-range-diff). This can be useful for comparing code
509
that was force-pushed to make sure there are no unexpected changes.
510
511
+### Ignoring changes to specific files
512
+
513
+Many large files in the repo are autogenerated. To view a diff that ignores changes to those files,
514
+you can use the following syntax (e.g. Cargo.lock):
515
516
+```
517
+git log -p ':!Cargo.lock'
518
519
520
+Arbitrary patterns are supported (e.g. `:!compiler/*`). Patterns use the same syntax as
521
+`.gitignore`, with `:` prepended to indicate a pattern.
522
523
## Git submodules
524
525
**NOTE**: submodules are a nice thing to know about, but it *isn't* an absolute
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments