Re: rebase --continue confusion
From: Eli Barzilay <hidden>
Date: 2016-06-15 22:48:55
On Jun 6, Jeff King wrote:
On Sun, Jun 06, 2010 at 09:10:44AM -0400, Eli Barzilay wrote:quoted
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 fooI'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!