forked from brackets-userland/brackets-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDefaultPreferences.js
More file actions
31 lines (28 loc) · 1.19 KB
/
Copy pathDefaultPreferences.js
File metadata and controls
31 lines (28 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*global brackets, define */
define(function (require, exports, module) {
"use strict";
// Default preferences are different for platforms
var defaultPreferences = {
"lastVersion": null,
"useGitGutter": true,
"panelEnabled": true,
"stripWhitespaceFromCommits": true,
"addEndlineToTheEndOfFile": true,
"TIMEOUT_VALUE": 30000,
// these are set by platform
"gitIsInSystemPath": null,
"gitPath": null,
"msysgitPath": null
};
if (brackets.platform === "win") {
defaultPreferences.gitIsInSystemPath = false;
defaultPreferences.gitPath = "C:\\Program Files (x86)\\Git\\bin\\git.exe";
defaultPreferences.msysgitPath = "C:\\Program Files (x86)\\Git\\";
} else {
// Mac (Linux?)
defaultPreferences.gitIsInSystemPath = false;
defaultPreferences.gitPath = "/usr/local/git/bin/git";
defaultPreferences.msysgitPath = "";
}
module.exports = defaultPreferences;
});