On Tue, Mar 31, 2015 at 04:59:27PM +0200, Sven Strickroth wrote:

> for frontends or scripts it would be helpful to be able to use "git
> status" for getting the repository status compared to HEAD~1 instead of
> only HEAD (as provided by "git commit --amend" in the pre-filled commit
> message).
> 
> Thus, I'm suggesting to add a "--amend" parameter (or a parameter with a
> better naming) to "git status".
> 
> What do you think of this idea?

Once upon a time "git status" really was just "git commit --dry-run".
These days it has diverged a bit. But I think you could get what you
want with:

  git commit --dry-run --amend

It even supports alternate styles like --short.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to