Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Using InMemoryRepository

On Sat, Mar 28, 2015 at 10:32 AM, Monmohan Singh <monmohan@xxxxxxxxx> wrote:
When using FileRepository, I see we can use JGit porcelain equivalent of Git commands like add file, commit etc. 
But there doesn't seem a way to set a WorkTree for InMemoryRepository. My understanding was that this (in-memory) storage is equivalent of .git folder in case of FileRepository .  What is the way to add files to such a repo, using ObjectInserter?

Thanks in advance for the help :) 

AFAIK InMemoryRepository is only used by tests. See DfsInserterTest for some examples.


Back to the top