Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EGit automatically add new files

Tags:

git

eclipse

egit

When executing a commit of a set of files within the EGit eclipse plugin, I always have to add new files manually in the commit dialog

Commit dialog

Is there a way to configure the plugin in a way, that adding new files automatically is the default setting?

like image 471
Christian Seifert Avatar asked Jul 13 '11 10:07

Christian Seifert


2 Answers

Such an option exists now, it can be enabled in the preferences in TeamGitCommit Dialog by checking Include selected untracked files:

Include selected untracked files option in commit dialog preferences

Note that only untracked files that are contained in the selected files/folders/projects are included – so it depends on where you opened the context menu from.

like image 99
robinst Avatar answered Nov 18 '22 18:11

robinst


Right now, there doesn't seem to be any option to have all new files added automatically.
(and this wouldn't be possible as well with Git)

Even on the commit stage, Git proposes only git commit -a -m "..." in order to automatically stage files that have been modified and deleted, but new files you have not told git about are not affected.

In other word, this would be a new feature in EGit which wouldn't have any direct correspondence in Git.

like image 22
VonC Avatar answered Nov 18 '22 19:11

VonC