glock icon indicating copy to clipboard operation
glock copied to clipboard

Cosmetic inquiry: GLOCKFILE naming

Open pkieltyka opened this issue 9 years ago • 3 comments

Hello & happy NYE!

glock is a very slick project. I was wondering why the choice of GLOCKFILE for the filename? why not, Glockfile ?

.. perhaps the filename can be case insensitive, with the following support:

  • glock save github.com/my/project will generate GLOCKFILE as a default (to your preference) - as is. However, if a "glockfile" exists of any case, then it will write the contents in the filename of that case.
  • glock sync will look for any "glockfile" type-case

pkieltyka avatar Dec 31 '14 19:12 pkieltyka

Yeah, I guess I was thinking of files like README and INSTALL rather than Makefile or Godeps.

I don't mind changing it. Probably the ideal solution would be to (a) stop with an error if you notice more than one file named "glockfile" of any case, (b) read glockfile in any casing, and (c) write it with the casing "Glockfile". Or maybe that's overkill and just the simple change would be fine.

I'm not sure if git handles it properly, but I know that using HG, commits that change a file name casing (made on linux) could not be easily pulled on OSX due to file name conflicts / case insensitive file system.

robfig avatar Jan 01 '15 20:01 robfig

That works. You could also just rename a file to whatever you have desired and print out a warning if that file change happened.

You're right about the version control thing. I don't think there is anything elegant for that..

pkieltyka avatar Jan 02 '15 15:01 pkieltyka

btw, someone can use git mv GLOCKFILE Glockfile and it will make the case change properly

pkieltyka avatar Jan 05 '15 16:01 pkieltyka