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

Re: unexpected file deletion after using git rebase --abort

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jul 4, 2013, 23:27 UTC
Message-ID
<CAPig+cSz2MH4REJyNDox_NCM3DnFamizzMMiDzX=SumpDL77Gw@mail.gmail.com>
In-Reply-To
<20130704193550.GA4183@localhost.localdomain>
On Thu, Jul 4, 2013 at 3:35 PM, Paul A. Kennedy <pakenned@pobox.com> wrote:
Show 15 quoted lines
> diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt
> index aca8405..ffaef29 100644
> --- a/Documentation/git-rebase.txt
> +++ b/Documentation/git-rebase.txt
> @@ -238,6 +238,13 @@ leave out at most one of A and B, in which case it defaults to HEAD.
>         will be reset to where it was when the rebase operation was
>         started.
>
> +       Untracked files added to the index will not be unstaged, and
> +       therefore, not present in the working directory upon abort.
> +       Unstage files before the abort, or stash untracked content before
> +       starting the rebase (see linkgit:git-stash[1]).  Dangling blobs
> +       may be found and recovered using fsck and cat-file (see
> +       linkgit:git-fsck[1], linkgit:git-cat-file[1]).
> +

Not commenting about the change in general, just one issue: The transition to "dangling blobs" seems abrupt and may convey little meaning to non-expert users. Perhaps lead in to that sentence with something along the lines of:

  "If you neglect to unstage untracked files before abort, they become
dangling blogs, which may be found ..."
Also, a bit earlier, perhaps: s/Unstage files/Manually unstage files/
Previous: Paul A. KennedyNext: Junio C Hamano
Message 5 of 6 in “unexpected file deletion after using git rebase --abort”
  1. Paul A. KennedyJul 3, 2013
  2. Jonathan NiederJul 3, 2013
  3. Junio C HamanoJul 3, 2013
  4. Paul A. KennedyJul 4, 2013
  5. Eric SunshineJul 4, 2013
  6. Junio C HamanoJul 5, 2013

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.