git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] Fix a git stash -p corner-case

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Apr 8, 2020, 18:52 UTC
Message-ID
<pull.602.git.1586371954.gitgitgadget@gmail.com>

This corner case came up a couple of times in my personal usage of git stash -p: I wanted to stash only part of a split hunk, and it didn't work.

I originally intended to do a full fix (for details, see the commit message of the second patch), but in the year since I wrote this patch pair, I found the current work-around plenty satisfactory.

Johannes Schindelin (2):
  t3904: fix incorrect demonstration of a bug
  stash -p: (partially) fix bug concerning split hunks
 builtin/stash.c        | 2 +-
 t/t3904-stash-patch.sh | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
base-commit: 9fadedd637b312089337d73c3ed8447e9f0aa775
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-602%2Fdscho%2Fstash-p-corner-case-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-602/dscho/stash-p-corner-case-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/602
-- 
gitgitgadget
Next: Johannes Schindelin via GitGitGadget
Message 1 of 3 in “Fix a git stash -p corner-case”
  1. 0/2 Fix a git stash -p corner-caseJohannes Schindelin via GitGitGadget, Apr 8, 2020
  2. 1/2 t3904: fix incorrect demonstration of a bugJohannes Schindelin via GitGitGadget, Apr 8, 2020
  3. 2/2 stash -p: (partially) fix bug concerning split hunksJohannes Schindelin via GitGitGadget, Apr 8, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.