]> source.dussan.org Git - jgit.git/commit
RepoCommand: Move bare/regular superproject writing to their own classes 03/184503/11
authorIvan Frade <ifrade@google.com>
Thu, 26 Aug 2021 20:19:01 +0000 (13:19 -0700)
committerIvan Frade <ifrade@google.com>
Mon, 31 Jan 2022 22:47:33 +0000 (14:47 -0800)
commitdee4240ce86f21d262ac071ed80838223bf4d516
tree77025bf38a8ef95378fa2ef2f5723e9463e66bae
parent1fd15e40cc7bf67c30849abc3030de8568246a4e
RepoCommand: Move bare/regular superproject writing to their own classes

RepoCommand parses the manifest to get a list of projects, clears up
conflicts and then writes to the superproject. The first steps are
common but the writing is completely different for bare or "regular"
(with working dir) repository.

Split writing to bare and regular repos into its own classes. This
simplifies RepoCommand class and makes clearer what happens on each side
(e.g. many options apply only to bare repos).

Change-Id: I256e15729bd53ee15fc56de88bce86a2edb2417a
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/BareSuperprojectWriterTest.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/BareSuperprojectWriter.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RegularSuperprojectWriter.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java