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

Re: rebase --continue confusion

From
Eli Barzilay <eli@barzilay.org>
Date
Jun 6, 2010, 22:32 UTC
Message-ID
<19468.8730.59682.76355@winooski.ccs.neu.edu>
In-Reply-To
<20100606221853.GG6993@coredump.intra.peff.net>
On Jun  6, Jeff King wrote:
Show 17 quoted lines
> On Sun, Jun 06, 2010 at 09:10:44AM -0400, Eli Barzilay wrote:
> 
> > There are a number of these things that I asked about recently.
> > Here's another similarly one:
> > 
> >   $ git add foo
> >   $ git status -s
> >   M  foo
> >   $ git commit --amend foo
> >   # On branch master
> >   # No changes
> >   $ git status -s
> >   M  foo
> 
> I'm confused. Is there some context for when you are issuing these
> commands?  Because the "git commit --amend foo" should actually
> commit foo, and does for me.

Heh, in that case it was more effective than I thought... My point in the previous posts was also about missing information (in that case, make `git add' tell you when adding it canceled previously added changes, and also make `git status' tell you if you're in the middle of a merge or rebase and in a clean state).

In any case, here's the prelude to the above:
  $ mkdir t; cd t; git init
  $ echo foo > foo; git add foo; git commit -m foo
  $ echo bar > foo; git commit -o foo -m bar
  $ echo foo > foo

(And as cooked as it seems, I posted it because I actually ran into it this morning.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!
Previous: Jeff KingNext: Jeff King
Message 6 of 12 in “rebase --continue confusion”
  1. Dale RowleyMay 30, 2010
  2. Tim VisherMay 30, 2010
  3. skillzero@gmail.comMay 31, 2010
  4. Eli BarzilayJun 6, 2010
  5. Jeff KingJun 6, 2010
  6. Eli BarzilayJun 6, 2010
  7. Jeff KingJun 6, 2010
  8. Eli BarzilayJun 6, 2010
  9. Jeff KingJun 7, 2010
  10. Junio C HamanoMay 31, 2010
  11. Ramkumar RamachandraMay 31, 2010
  12. Jan KrügerMay 31, 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.