Git : Use --cached and --binary for patch creation.
This commit is contained in:
parent
a3d777256e
commit
79c3d6431a
|
@ -109,7 +109,7 @@
|
|||
# Git patch create.
|
||||
# Usage: gpc <FILE>
|
||||
function gpc() {
|
||||
git diff > "''${@}"
|
||||
git diff --cached --binary > "''${@}"
|
||||
}
|
||||
|
||||
# Git patch (apply).
|
||||
|
|
Loading…
Reference in a new issue