Git : .gitignore_global containing *~ prevents from adding files in folders ending with ~

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Git : .gitignore_global containing *~ prevents from adding files in folders ending with ~

Mathieu CHAMAGNE
/Users/mathieuchamagne/.gitignore_global contains 

*~
.DS_Store

so : in jamomaMax repository, I can't add any new file with a name ending with ~
and
I can't add any new file in a folder ending with ~

for example, in : JamomaMax/Jamoma/patchers/modules/audio/stereo/Delay/delay~

(but I can modify or remove files in this folder ...)

(if I remove this line, I can commit all my files~ without any problem)


I'm pretty sure that this .gitignore_global file has been modified by *something* related to Jamoma
(an old installer ? a build script ? ...)

(I've just installed sourcetree / Git  on a virgin osX computer, and by default this file do not exists.)


Does anyone knows the reason of this line
*~

can I remove it safely ?
or is there a workaround to commit files in folders~ ?

Thanks

M


________________
Mathieu Chamagne
[hidden email]
http://mathieuchamagne.com

------------------------------------------------------------------------------

_______________________________________________
Jamoma-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jamoma-devel
tap
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Git : .gitignore_global containing *~ prevents from adding files in folders ending with ~

tap
A lot of apps save backup versions of files ending with the tilde character, which is why this is present the .gitignore file.

I have a couple of thoughts regarding the folder naming, however.  Here is the example you provided:

    JamomaMax/Jamoma/patchers/modules/audio/stereo/Delay/delay~

And here are my questions:

1.  Why is "Delay" capitalized when none of the others are?
2.  If this module is in a folder in a folder in a folder in a folder name "audio" is it obvious that it's an audio module?
     If it's obvious, then does the "delay" folder in the "Delay" folder need a tilde char at the end?
3.  Do we really need so many levels of a folders?

Tim


On Fri, Sep 18, 2015 at 9:29 AM, Mathieu CHAMAGNE <[hidden email]> wrote:
/Users/mathieuchamagne/.gitignore_global contains 

*~
.DS_Store

so : in jamomaMax repository, I can't add any new file with a name ending with ~
and
I can't add any new file in a folder ending with ~

for example, in : JamomaMax/Jamoma/patchers/modules/audio/stereo/Delay/delay~

(but I can modify or remove files in this folder ...)

(if I remove this line, I can commit all my files~ without any problem)


I'm pretty sure that this .gitignore_global file has been modified by *something* related to Jamoma
(an old installer ? a build script ? ...)

(I've just installed sourcetree / Git  on a virgin osX computer, and by default this file do not exists.)


Does anyone knows the reason of this line
*~

can I remove it safely ?
or is there a workaround to commit files in folders~ ?

Thanks

M


________________
Mathieu Chamagne
[hidden email]
http://mathieuchamagne.com

------------------------------------------------------------------------------

_______________________________________________
Jamoma-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jamoma-devel



------------------------------------------------------------------------------

_______________________________________________
Jamoma-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jamoma-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Git : .gitignore_global containing *~ prevents from adding files in folders ending with ~

Mathieu CHAMAGNE
Thanks Tim

so, if this .gitignore file is kind of standard, we should get rid of these ~ in our folder names...

I agree that they are useless here :
modules/audio/stereo/Delay/delay~
as it's already in an "audio" folder...

Mathieu


------------------------------------------------------------------------------

_______________________________________________
Jamoma-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jamoma-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Git : .gitignore_global containing *~ prevents from adding files in folders ending with ~

jcelerier
Mathieu,

as a side node and a quick fix, you can use git add -f [files to add] if you want to bypass gitignore.

Best,
Jean-Michaël



On Fri, Sep 18, 2015 at 5:10 PM, Mathieu CHAMAGNE <[hidden email]> wrote:
Thanks Tim

so, if this .gitignore file is kind of standard, we should get rid of these ~ in our folder names...

I agree that they are useless here :
modules/audio/stereo/Delay/delay~
as it's already in an "audio" folder...

Mathieu


------------------------------------------------------------------------------

_______________________________________________
Jamoma-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jamoma-devel



------------------------------------------------------------------------------

_______________________________________________
Jamoma-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jamoma-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Git : .gitignore_global containing *~ prevents from adding files in folders ending with ~

Trond Lossius
Administrator
In reply to this post by tap
Hi,

> 1.  Why is “Delay" capitalized when none of the others are?

For the sake of inconsistency… ;-)

> 2.  If this module is in a folder in a folder in a folder in a folder name "audio" is it obvious that it's an audio module?
>      If it’s obvious, then does the "delay" folder in the "Delay" folder need a tilde char at the end?

Sounds like we’ve already agreed that the tilde is not needed

> 3.  Do we really need so many levels of a folders?

Yes, I’m the main caretaker for these models, ad it helps me a lot to figure out what models we have and what they do when /audio/strero models are grouped into subfolder in much the same way as is the case with sorting of plugins in e.g. Logic.

I’ve just pushed renames to master.

Best,
Trond
------------------------------------------------------------------------------
_______________________________________________
Jamoma-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jamoma-devel
Loading...