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

AW: Git revert cannot be aborted if the repository directory has been copied

From
MSMarco Stephan <marc.stephan96@hotmail.de>
Date
Nov 3, 2024, 17:33 UTC
Message-ID
<VI1PR02MB4991FD152D121E6775195774E6502@VI1PR02MB4991.eurprd02.prod.outlook.com>
In-Reply-To
<89796e97-e5e1-4668-8b81-692579547bbf@app.fastmail.com>
On Sun, Nov 3, 2024, at 16:13, Kristoffer Haugsbakk wrote:
> Okay, I missed that `git update-index --really-refresh` previously.
> 
> I’m not a technical expert but is there a use-case here?  Or did you
> find this by accident while doing something else?
I stumbled upon this behavior while working on some Git scripts. For these, I've prepared template repositories which I then copy and run the scripts on. This specific scenario in which I want to abort a revert in progress is, so far, the only scenario where this copying causes problems. All other Git commands I've used seem to simply ignore it or "refresh the index" on their own. For example, "git cherry-pick --abort" does not run into this problems for me.
Previous: Kristoffer HaugsbakkNext: Phillip Wood
Message 6 of 8 in “Git revert cannot be aborted if the repository directory has been copied”
  1. Marco StephanNov 3, 2024
  2. Junio C HamanoNov 3, 2024
  3. Kristoffer HaugsbakkNov 3, 2024
  4. Kristoffer HaugsbakkNov 3, 2024
  5. Kristoffer HaugsbakkNov 3, 2024
  6. AW: Git revert cannot be aborted if the repository directory has been copiedMarco Stephan, Nov 3, 2024
  7. Phillip WoodNov 4, 2024
  8. AW: Git revert cannot be aborted if the repository directory has been copiedMarco Stephan, Nov 7, 2024

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.