DESCRIPTION

Disable amend if the repository does not contain a commit

The amend toggle is disabled in commit dialog and staging view if the
repository does not contain a commit.

Change-Id: Ibac8a3efe7ad6fed2ba867e240bd288b98667c02
Signed-off-by: Marlie Beasley xxx@xxx.xxx
Signed-off-by: Douglas Trujillo xxx@xxx.xxx

COMMENTS

author: Douglas Trujillo
date: 2011-06-17 07:15:06.000000000

Uploaded patch set 3.

-------------------------------------
author: Brenden Conley
date: 2011-06-17 07:15:10.000000000

Patch Set 3:

Build Started https://hudson.eclipse.org/sandbox/job/egit.gerrit/1085/ 

-------------------------------------
author: Douglas Trujillo
date: 2011-06-17 07:19:45.000000000

Patch Set 3: I would prefer that you didn't submit this

I agree to Robin's comment, RepositoryState should get something like canAmend() to avoid combining flags in using code which is hard to understand

-------------------------------------
author: Brenden Conley
date: 2011-06-17 07:22:41.000000000

Patch Set 3: Build Successful

Build Successful 
 
https://hudson.eclipse.org/sandbox/job/egit.gerrit/1085/ : SUCCESS

-------------------------------------
author: Marlie Beasley
date: 2011-11-25 16:22:38.000000000

Patch Set 3:

Proposed a JGit change to extend RepositoryState with a method "canAmend": http://egit.eclipse.org/r/4674

-------------------------------------
