Code Monkey home page Code Monkey logo

Comments (3)

sschuberth avatar sschuberth commented on July 20, 2024

Here are several misunderstandings here:

  • The line ending conversion as chosen during setup affects your global configuration in ~/.gitconfig (aka %HOME%\.gitconfig). If the repository-local configuration in .git/config does not override autocrlf, the global one is in place. So everything is alright here.
  • The request for a GUI to edit options is a completely unrelated topic and should go to a separate feature request. However, don't raise your hopes too high, as most people (including me) probably don't see the benefit of a dedicated editor vs. using your GUI editor of choice to edit .git/config directly or simply using the git config command line interface.
  • TortoiseGit is a separate project and issues regard it should go here.

from git.

dcorb avatar dcorb commented on July 20, 2024

Thanks for the answer and pointing me to that file.

That file didn't hold the autocrlf configuration though.

But I can confirm the configuration is being applied through

  git config --list

So... I found that there are multiple global configurations. One is the file you said, and other one is

  C:\Program Files (x86)\Git\etc\gitconfig

It seems this file is created during installation and if you run this command:

  git config --global core.autocrlf false

then is saved in ~/.gitconfig and this global configuration overrides the one in "program files" folder

This is quite confusing.. why not to use only a single global configuration file?

2nd thing.. I'm not requesting for a config GUI editor. It exits already. GUI -> Edit -> Options...
For example you can change there name / email and it will affect the ~/.gitconfig file.


Conclusion... I think is a very important sensitive configuration.. (proof of that is that is shown during installation) and then it's hidden from the user who wants to verify/change this setting.

Also I found very nice explained in the installation the meaning of the options, so why not to show this dialog/options again in the Git GUI options ?

UPDATE. I can't add any more comments in this issue suddenly :/
In reply to your answer (below)
I didn't mean git gui and neither Tortoise. I don't mean to be rude, but it's strange that you don't know what components msysgit installs

I was referring to "Git Gui" tool. This is a screenshot how it looks the msysgit Git Gui with the options dialog open
http://i.imgur.com/W00Jf.png

Yes.. for me this issue is closed. Thanks for the discussion! =)

from git.

sschuberth avatar sschuberth commented on July 20, 2024

The reason why there are two "global" configuration files is because of Git's Linux background: The one in Git\etc\gitconfig is the system configuration file, with has the defaults for all users on the system. The one in ~/.gitconfig is the user-global file which has the defaults for all repositories of the current user. Anyway, sorry for confusing you by saying the installer would write write the autocrlf setting to the global configuration while it is in fact the system configuration.

I don't know the GUI-> Edit -> Options menu, probably because I don't use TortoiseGit as I prefer the command line for Git.

When you refer to "Git GUI" I assume you don't really mean the "git gui" tool, but the GUI / Explorer context menu entries as provided by TortoiseGit. If that's the case, please file an feature request with that project. Otherwise, this issue is evolving too much into a support discussion for my taste, so you should consider posting to the mailing list instead.

Thanks!

from git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.