]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.c
Support --amend on initial commit in status output
authorJürgen Rühle <j-r@online.de>
Tue, 2 Jan 2007 19:26:23 +0000 (20:26 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 3 Jan 2007 07:43:31 +0000 (23:43 -0800)
commit98bf8a47c296f51ea9722fef4bb81dbfb70cd4bb
treea8bf544dcf8f11b0914db29768ca099c2d197193
parent6e458bf63f48fb7d15cb70ad7c7b7b71915d94a2
Support --amend on initial commit in status output

We check the existence of the parent commit to determine whether the status is
requested for an initial commit. Since the parent commit depends on the
presence of the --amend switch do initial commit detection after command line
arguments have been handled.

Signed-off-by: Jürgen Rühle <j-r@online.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
wt-status.c