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

Small bug report in git restore -p prompt

From
DPDavid Plumpton <david.plumpton@gmail.com>
Date
Sep 14, 2022, 06:56 UTC
Message-ID
<CAJXaddZwqGabdjmgc22eCYCdBw6nxcPbPfom26PwG3xvKEN93w@mail.gmail.com>

What did you do before the bug happened? (Steps to reproduce your issue) git restore -p -s <hash>

What did you expect to happen? (Expected behavior) Prompt should say "Apply this hunk to worktree..."

What happened instead? (Actual behavior) Prompt said "Apply this hunk to index and worktree..."

What's different between what you expected and what actually happened? For git restore the prompt should not mention applying hunk to index.

Anything else you want to add:

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.37.3 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon uname: Darwin 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64 x86_64 compiler info: clang: 13.1.6 (clang-1316.0.21.2.5) libc info: no libc information available $SHELL (typically, interactive shell): /bin/zsh

[Enabled Hooks]
-- 
David P.
Next: René Scharfe
Message 1 of 3 in “Small bug report in git restore -p prompt”
  1. David PlumptonSep 14, 2022
  2. add -p: fix worktree patch mode promptsRené Scharfe, Sep 14, 2022
  3. Junio C HamanoSep 15, 2022

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.