Skip to main content



      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 09:04 Go to next message
Eclipse UserFriend
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 11:34 Go to previous messageGo to next message
Eclipse UserFriend
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 03:09 Go to previous messageGo to next message
Eclipse UserFriend
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 13:24 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 14:29:53 EDT 2025

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

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

Back to the top