sf-git-merge-driver 1.2.1-dev-137.18569268997-1 → 1.2.1-dev-137.18912604948-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -105,6 +105,37 @@ Configured for these metadata files by default:
105
105
  *.objectTranslation-meta.xml merge=salesforce-source
106
106
  ```
107
107
 
108
+ ## How to disable it for a specific merge
109
+
110
+ When you don't want to use the merge driver for a specific merge, just backup the `.git/info/attributes` file and put it back after the merge.
111
+ ```sh
112
+ mv .git/info/attributes .git/info/attributes.bak
113
+ git merge <branche>
114
+ mv .git/info/attributes.bak .git/info/attributes
115
+ ```
116
+
117
+ If you want to disable the merge driver for a specific file, just comment the merge driver configuration from the `.git/info/attributes` file.
118
+ ```sh
119
+ # *.profile-meta.xml merge=salesforce-source
120
+ ```
121
+
122
+ If you want to disable it for all the project, just uninstall the driver:
123
+ ```sh
124
+ sf git merge driver uninstall
125
+ ```
126
+
127
+ ## How to know if it is installed and enabled ?
128
+
129
+ You can check if the merge driver is installed by running the following command:
130
+ ```sh
131
+ git config --show-origin --get-regexp '^merge.salesforce-source(\..*)?'
132
+ ```
133
+
134
+ You can check if the merge driver is enabled by running the following command:
135
+ ```sh
136
+ grep "merge=salesforce-source" .git/info/attributes
137
+ ```
138
+
108
139
  ## Troubleshooting
109
140
 
110
141
  The plugin uses the [Salesforce CLI logging system](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_dev_cli_log_messages.htm) to log information.
@@ -157,7 +188,7 @@ EXAMPLES
157
188
  $ sf git merge driver install
158
189
  ```
159
190
 
160
- _See code: [src/commands/git/merge/driver/install.ts](https://github.com/scolladon/sf-git-merge-driver/blob/v1.2.1-dev-137.18569268997-1/src/commands/git/merge/driver/install.ts)_
191
+ _See code: [src/commands/git/merge/driver/install.ts](https://github.com/scolladon/sf-git-merge-driver/blob/v1.2.1-dev-137.18912604948-1/src/commands/git/merge/driver/install.ts)_
161
192
 
162
193
  ## `sf git merge driver run`
163
194
 
@@ -201,7 +232,7 @@ EXAMPLES
201
232
  - output-file is the path to the file where the merged content will be written
202
233
  ```
203
234
 
204
- _See code: [src/commands/git/merge/driver/run.ts](https://github.com/scolladon/sf-git-merge-driver/blob/v1.2.1-dev-137.18569268997-1/src/commands/git/merge/driver/run.ts)_
235
+ _See code: [src/commands/git/merge/driver/run.ts](https://github.com/scolladon/sf-git-merge-driver/blob/v1.2.1-dev-137.18912604948-1/src/commands/git/merge/driver/run.ts)_
205
236
 
206
237
  ## `sf git merge driver uninstall`
207
238
 
@@ -228,7 +259,7 @@ EXAMPLES
228
259
  $ sf git merge driver uninstall
229
260
  ```
230
261
 
231
- _See code: [src/commands/git/merge/driver/uninstall.ts](https://github.com/scolladon/sf-git-merge-driver/blob/v1.2.1-dev-137.18569268997-1/src/commands/git/merge/driver/uninstall.ts)_
262
+ _See code: [src/commands/git/merge/driver/uninstall.ts](https://github.com/scolladon/sf-git-merge-driver/blob/v1.2.1-dev-137.18912604948-1/src/commands/git/merge/driver/uninstall.ts)_
232
263
  <!-- commandsstop -->
233
264
  ## Changelog
234
265
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "sf-git-merge-driver",
3
- "version": "1.2.1-dev-137.18569268997-1",
3
+ "version": "1.2.1-dev-137.18912604948-1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "sf-git-merge-driver",
9
- "version": "1.2.1-dev-137.18569268997-1",
9
+ "version": "1.2.1-dev-137.18912604948-1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@oclif/core": "^4.5.6",
@@ -284,5 +284,5 @@
284
284
  ]
285
285
  }
286
286
  },
287
- "version": "1.2.1-dev-137.18569268997-1"
287
+ "version": "1.2.1-dev-137.18912604948-1"
288
288
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sf-git-merge-driver",
3
3
  "description": "git remote add origin git@github.com:scolladon/sf-git-merge-driver.git",
4
- "version": "1.2.1-dev-137.18569268997-1",
4
+ "version": "1.2.1-dev-137.18912604948-1",
5
5
  "exports": "./lib/driver/MergeDriver.js",
6
6
  "type": "module",
7
7
  "author": "Sébastien Colladon (colladonsebastien@gmail.com)",