Re: [anjuta-devel] Automatically add project sources files when committing files



On 01/29/2012 02:43 AM, Sébastien Granjoux wrote:
Hi James,


I think it would be useful, in the git commit dialog, to display all
modified project source files not already in git and add them
automatically if they are selected.


This would fix the issue when creating a new project and when adding new
or already existing files to the project without needing the add to
version control check box. There is already a bug for this.
https://bugzilla.gnome.org/show_bug.cgi?id=663672
What do you think?

It sounds like a good idea in theory, but I would want to work out the
workflow a bit. If I understand the bug report correctly, it would go
something like this:

1. User creates a project
2. User loads the git plugin
3. The git plugin looks for new project files and runs git add on them
4. User tweaks the index if necessary and then commits the new project
skeleton.

Do I have this right? If so, it seems that we would want to do something
similar to what Arnel suggests in the bug: have the git plugin check for
new project files on every load. But I think just doing that could be a
problem, in that the git plugin could try to add new files to the index
every time it loads, not just after a new project is created. Is there
some way the git plugin can tell if a new project has been created?

Thanks,
James



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]