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

Re: [RFC,PATCH] git-amend -- darcs like amend-record for git

From
Tay Ray Chuan <rctay89@gmail.com>
Date
Mar 1, 2010, 09:16 UTC
Message-ID
<be6fef0d1003010116p443985b3ib71f229a1978f831@mail.gmail.com>
In-Reply-To
<1267107365-2973-1-git-send-email-kirr@mns.spb.ru>
Hi,
On Thu, Feb 25, 2010 at 10:16 PM, Kirill Smelkov <kirr@mns.spb.ru> wrote:
Show 9 quoted lines
> Ever wanted to type `git commit --amend HEAD~3` ? But had to fall back to commit
> and interactive rebase with fixup? And was tired by a lot of typing? And also
> rebase works only on clean worktree, so stash save and stash pop have to be
> used...
>
> Forget it.
>
> Now one can just do `git add ...` to prepare index, and then
> `git amend <commit>` to merge that changes from index into <commit>.

this may be a little late, but I'd like to indicate my interest in such a feature.

A suggestion: I believe this could be better advertised as git-rebase --interactive --edit. After all, you do replay the intervening commits (which is closer to git-rebase than git-commit).

-- 
Cheers,
Ray Chuan
Previous: Kirill SmelkovNext: Larry D'Anna
Message 2 of 4 in “git-amend -- darcs like amend-record for git”
  1. git-amend -- darcs like amend-record for gitKirill Smelkov, Feb 25, 2010
  2. Tay Ray ChuanMar 1, 2010
  3. Larry D'AnnaMar 1, 2010
  4. Kirill SmelkovMar 3, 2010

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.