Git : Use --cached and --binary for patch creation.

This commit is contained in:
Dmitry Voronin 2024-08-20 20:54:31 +03:00
parent a3d777256e
commit 79c3d6431a
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -109,7 +109,7 @@
# Git patch create.
# Usage: gpc <FILE>
function gpc() {
git diff > "''${@}"
git diff --cached --binary > "''${@}"
}
# Git patch (apply).