Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Checkout a list of files
Checkout a list of files [message #666846] Sat, 23 April 2011 08:29 Go to next message
CyMac  is currently offline CyMac Friend
Messages: 1
Registered: April 2011
Junior Member
Hi,

I'd like to execute the following GIT command with JGIT, but after a lot of googling, I didn't find any simple way to do it. Any help would be greatly appreciated !

git checkout file1.txt file2.txt file3.txt

Thanks,
CyMac


Re: Checkout a list of files [message #667086 is a reply to message #666846] Tue, 26 April 2011 15:41 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
"CyMac" <machetti.geo@yahoo.com> wrote in message
news:iou26g$ahq$1@news.eclipse.org...
> Hi,
>
> I'd like to execute the following GIT command with JGIT, but after a lot
> of googling, I didn't find any simple way to do it. Any help would be
> greatly appreciated !
>
> git checkout file1.txt file2.txt file3.txt

I recommend to ask that question on the JGit developer mailing list:
http://dev.eclipse.org/mhonarc/lists/jgit-dev/maillist.html

In the end it would be great if that functionality would be added to the
JGit class org.eclipse.jgit.api.CheckoutCommand.

Stefan
Re: Checkout a list of files [message #667844 is a reply to message #666846] Mon, 02 May 2011 12:35 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Coming soon, see [1]

[1] http://egit.eclipse.org/r/#change,3280
Re: Checkout a list of files [message #668076 is a reply to message #666846] Tue, 03 May 2011 15:45 Go to previous message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
>
> I'd like to execute the following GIT command with JGIT, but after a lot
> of googling, I didn't find any simple way to do it. Any help would be
> greatly appreciated !
>
> git checkout file1.txt file2.txt file3.txt
>

I just submitted change http://egit.eclipse.org/r/#change,3280 Now with the
nightly build you can use the JGit checkout command with paths.
Previous Topic:Workflow for creating projects with remote support
Next Topic:Where are the jgit 0.11.x maven artifacts?
Goto Forum:
  


Current Time: Fri Apr 19 20:24:29 GMT 2024

Powered by FUDForum. Page generated in 0.02886 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top