]> source.dussan.org Git - jgit.git/commit
Require all projects to have a name 81/49981/3
authorJonathan Nieder <jrn@google.com>
Wed, 10 Jun 2015 23:35:43 +0000 (16:35 -0700)
committerJonathan Nieder <jrn@google.com>
Thu, 11 Jun 2015 17:44:18 +0000 (10:44 -0700)
commit85ca42f14b97afab4cbbd865a3e0e666aed46e06
treee68c87a46238659a322f8bc78a8bc8835343550c
parentbe0134f2fd514033589b2015b2bf0b0f49af9aeb
Require all projects to have a name

A project's name attribute is required according to repo's
doc/manifest-format.txt:

    <!ELEMENT project (annotation*,
                       project*)>
    <!ATTLIST project name        CDATA #REQUIRED>

Enforcing this in code makes reading easier (in particular making it
clearer that getName() and getPath() can never return null).

Change-Id: I8c7014dd6042183d7fecb2202af5acdc384aa8e4
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/ManifestParser.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoProject.java