Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] .git/branches folder

"Zivkov, Sasa" <sasa.zivkov@xxxxxxx> 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.


Back to the top