Compute the author/committer name/email from git configuration
commit592b2a13d2a10c360b321da23dfe77e09d3e1ce4
authorYann Simon <yann.simon.fr@gmail.com>
Thu, 5 Feb 2009 10:44:03 +0000 (5 11:44 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 5 Feb 2009 15:36:55 +0000 (5 07:36 -0800)
treed2d618f019674b6da3a735d75a63292fb317a69a
parentd2c5cc27608853feffb553a6c3a673cd0e16ea97
Compute the author/committer name/email from git configuration

The author/committer name/email are retrieved from the system
configuration and the local and global git configurations.

When the name is not available, propose a default one by using the
system user name.

When the email is not available, propose a default one by
concatenating the user name and the host name.

The author name and email are used as the default value in the
author field while committing with the GUI.

Fix issue 47 (field Author don't fill)

Signed-off-by: Yann Simon <yann.simon.fr@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/actions/CommitAction.java
org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryConfigTest.java
org.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryTestCase.java
org.spearce.jgit/src/org/spearce/jgit/lib/Constants.java
org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java
org.spearce.jgit/src/org/spearce/jgit/util/SystemReader.java [new file with mode: 0644]