git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: JGIT newbie question

From
Ssundarbun <sundarbun@yahoo.com>
Date
Jan 11, 2011, 21:58 UTC
Message-ID
<1294783138346-5912619.post@n2.nabble.com>
In-Reply-To
<AANLkTin=bZAgYeKHN2NUjYjZU5NBC_bs3bpCNNhijppq@mail.gmail.com>
Thanks Shawn.. I did look at the jGit list and I will post there as well.
>>But if you want to avoid using the working directory
Not sure what this means.. perhaps I have to read up some more...

I got as far as what you have suggested with the Git object in the org.eclipse.jgit.api jar.

Where I got stumped was the specification of the userid/pwd/repo path parameters that tells git when I init it (as I run on an aws machine with no .git directory initially) to setup shop in a temp working directory that I specify in the init.

I was hoping to have an init command that I could pass a valid git repo url, a user name and pwd and local fileDir so that a .git would be created and then I can call checkout to get the part of the tree that I am interested in.

If you have any insight.. I'd appreciate your comments.

thanks again. S

-- 
View this message in context: http://git.661346.n2.nabble.com/JGIT-newbie-question-tp5911913p5912619.html
Sent from the git mailing list archive at Nabble.com.
Previous: Shawn Pearce
Message 3 of 3 in “JGIT newbie question”
  1. sundarbunJan 11, 2011
  2. Shawn PearceJan 11, 2011
  3. sundarbunJan 11, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.