Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » [JGit] AddCommand adds ALL files, not just modified and new
[JGit] AddCommand adds ALL files, not just modified and new [message #549917] Wed, 28 July 2010 13:04 Go to next message
Kees Bakker is currently offline Kees BakkerFriend
Messages: 8
Registered: July 2010
Junior Member
Hi,

AddCommand.call() adds all files from the filepatterns. This is unexpected (for me, at least). Is this intentional? This is not what git-add commandline tool does. If I simply want to add all modified and new files I can do the following on the commandline:

git add .

The question is: should I be able to use AddCommand for that?

Kind regards, Kees Bakker
Re: [JGit] AddCommand adds ALL files, not just modified and new [message #549972 is a reply to message #549917] Wed, 28 July 2010 15:34 Go to previous messageGo to next message
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 18
Registered: July 2009
Junior Member
what are the files which you don't want to be added? The unchanged files or the ignored files?
Re: [JGit] AddCommand adds ALL files, not just modified and new [message #550095 is a reply to message #549972] Thu, 29 July 2010 07:09 Go to previous messageGo to next message
Kees Bakker is currently offline Kees BakkerFriend
Messages: 8
Registered: July 2010
Junior Member
Christian Halstrick wrote on Wed, 28 July 2010 11:34
what are the files which you don't want to be added? The unchanged files or the ignored files?


Indeed. Same as the command line, the unchanged and ignored files are not added (at least, not without an extra option).
Re: [JGit] AddCommand adds ALL files, not just modified and new [message #559830 is a reply to message #550095] Sun, 19 September 2010 17:24 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
EGit 0.9.3 has been released this week [1]. It comes with ignore support [2] so please give it a try and come back if doesn't do what you expect.

[1] http://dev.eclipse.org/mhonarc/lists/egit-dev/msg01506.html
[2] http://wiki.eclipse.org/EGit/User_Guide#Git_Ignore
Previous Topic:Can not wrap mind around proper workflow with EGIT to collab on remote GIT servers...
Next Topic:[JGit] Where is DirChacheCheckout
Goto Forum:
  


Current Time: Thu Apr 25 07:48:04 GMT 2024

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

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

Back to the top