Patch Set 1: No score

This was discussed on the jgit mailing list with Shawn O.Pearce:


"Zivkov, Sasa" <sasa.zivkov@sap.com> wrote:
> When jgit initializes an empty repository it creates an empty
> "branches" folder under the .git folder.
> I haven't seen this folder in any other (C)Git repository.
> Creating new branches leaves this folder empty.
> A quick search through the jgit source code couldn't find any
> usage of this folder.

Long ago, in a time far away from the present, git versions all of
the planet created the branches folder to be compatible with the
most ancient of git tools, Cogito.

When that portion of JGit was written, C Git created branches,
and Cogito was still in active use.  So, we created branches too.

Almost two years ago (has it been that long?) Pasky put Cogito
up for sale and stopped maintaining the project.  Since then the
branches folder must have been removed from C Git's init routine,
and JGit just didn't catch up.

> Should creation of this folder be removed from the Repository
> class?

Yes.

-- 
Shawn.





"Zivkov, Sasa" <sasa.zivkov@sap.com> wrote:
> Creation of the .git/remotes folder seems also to be outdated?

Yup.  I don't think JGit even honors remotes from .git/remotes,
I think we require the newer-style config based remotes.

-- 
Shawn.



I will add Shawn as the reviewer for this change to get
his opinion again.