Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmetic inquiry: GLOCKFILE naming #17

Open
pkieltyka opened this issue Dec 31, 2014 · 3 comments
Open

Cosmetic inquiry: GLOCKFILE naming #17

pkieltyka opened this issue Dec 31, 2014 · 3 comments

Comments

@pkieltyka
Copy link

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
@robfig
Copy link
Owner

robfig commented Jan 1, 2015

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.

@pkieltyka
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants