[Gambas-user] Feature request: Option to create .gitignore in new Project dialog

Tobias Boege taboege at ...626...
Sat May 17 16:49:54 CEST 2014


On Sat, 17 May 2014, Beno?t Minisini wrote:
> Le 09/05/2014 16:16, Patrik Karlsson a ?crit :
> > I think it would be nice to just tick a CheckBox in the new project dialog
> > to create a standard .gitignore.
> >
> > What do you think?
> >
> > /Patrik
> 
> I want to automatically create a ".gitignore" file inside Gambas project 
> directories, to ignore all files that must be ignored.
> 
> Question: is the ".gitignore" file automatically ignored? Never ignored?
> 

It's up to you. Per default, modifications to .gitignore are reported when
you issue "git status". But you can also ignore it by listing it inside of
itself. (Note that .gitignore doesn't need to be committed before git
honours it. As soon as the file contents change, git behaves accordingly.)

I wouldn't recommend the latter because then people preparing a commit won't
see changes they made to .gitignore (which may of course happen, depending
on the project; and developers may want users to get the .gitignore because
users are potential developers) and if they try to "git add .gitignore",
this will be an error. (They need to force the add: "git add -f .gitignore"
which is uncool).

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list