mirror of
https://github.com/moby/moby.git
synced 2026-06-24 08:48:23 +00:00
git: Add diff drivers for function context
Map common source and documentation file types to Git's built-in diff drivers so `git diff -W` expands hunks using language-aware function or section boundaries instead of generic text context. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
7
.gitattributes
vendored
7
.gitattributes
vendored
@@ -1 +1,8 @@
|
||||
Dockerfile* linguist-language=Dockerfile
|
||||
|
||||
*.c diff=cpp
|
||||
*.h diff=cpp
|
||||
*.go diff=golang
|
||||
*.md diff=markdown
|
||||
*.py diff=python
|
||||
*.sh diff=bash
|
||||
|
||||
Reference in New Issue
Block a user