summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2024-04-22 10:28:14 +0000
committerJunio C Hamano <gitster@pobox.com>2024-04-22 13:57:18 -0700
commit5fb768640976a9f004925045e51d60ba5a903490 (patch)
treeb1a0d5090516842aae61292de4f833254d0d194a /builtin/commit.c
parent7380a72f6b4da51f6db975f4a37c4ea9dadbf477 (diff)
stash: fix "--staged" with binary files
"git stash --staged" errors out when given binary files, after saving the stash. This behaviour dates back to the addition of the feature in 41a28eb6c1 (stash: implement '--staged' option for 'push' and 'save', 2021-10-18). Adding the "--binary" option of "diff-tree" fixes this. The "diff-tree" call in stash_patch() also omits "--binary", but that is fine since binary files cannot be selected interactively. Helped-By: Jeff King <peff@peff.net> Helped-By: Randall S. Becker <randall.becker@nexbridge.ca> Signed-off-by: Adam Johnson <me@adamj.eu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions