Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Enforcing autocrlf=false

Get the repository's config and set the core.autocrlf option to false

StoredConfig config = Repository.getConfig();
config.setBoolean("core", null, "autocrlf", false);
config.save();

-Matthias

On Thu, May 5, 2016 at 4:45 PM, Gabriel Titerlea <gabriel_titerlea@xxxxxxx> wrote:
Hello,

I am using JGit in an environment where I cannot modify the global .gitconfig file.
(application is given to users who may or may not have git installed and may be on windows or linux).

I would like to set the core.autocrlf value to false programatically (overriding the value from the .gitconfig file).
Is that possible?

Thanks,
Gabriel

_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jgit-dev


Back to the top