sf-git-merge-driver 1.2.1-dev-137.18569178375-1 → 1.2.1-dev-137.18569268997-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
@@ -125,6 +125,111 @@ GIT_TRACE=true
125
125
  git merge ...
126
126
  ```
127
127
 
128
+ ## Commands
129
+
130
+ <!-- commands -->
131
+ * [`sf git merge driver install`](#sf-git-merge-driver-install)
132
+ * [`sf git merge driver run`](#sf-git-merge-driver-run)
133
+ * [`sf git merge driver uninstall`](#sf-git-merge-driver-uninstall)
134
+
135
+ ## `sf git merge driver install`
136
+
137
+ Installs a local git merge driver for the given org and branch.
138
+
139
+ ```
140
+ USAGE
141
+ $ sf git merge driver install [--json] [--flags-dir <value>]
142
+
143
+ GLOBAL FLAGS
144
+ --flags-dir=<value> Import flag values from a directory.
145
+ --json Format output as json.
146
+
147
+ DESCRIPTION
148
+ Installs a local git merge driver for the given org and branch.
149
+
150
+ Installs a local git merge driver for the given org and branch, by updating the `.git/info/attributes` files in the
151
+ project, creating a new merge driver configuration in the `.git/config` of the project, and installing the binary in
152
+ the node_modules/.bin directory.
153
+
154
+ EXAMPLES
155
+ Install the driver for a given project:
156
+
157
+ $ sf git merge driver install
158
+ ```
159
+
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)_
161
+
162
+ ## `sf git merge driver run`
163
+
164
+ Runs the merge driver for the specified files.
165
+
166
+ ```
167
+ USAGE
168
+ $ sf git merge driver run -O <value> -A <value> -B <value> -P <value> [--json] [--flags-dir <value>] [-L <value>] [-S
169
+ <value>] [-X <value>] [-Y <value>]
170
+
171
+ FLAGS
172
+ -A, --local-file=<value> (required) path to our version of the file
173
+ -B, --other-file=<value> (required) path to their version of the file
174
+ -L, --conflict-marker-size=<value> [default: 7] number of characters to show for conflict markers
175
+ -O, --ancestor-file=<value> (required) path to the common ancestor version of the file
176
+ -P, --output-file=<value> (required) path to the file where the merged content will be written
177
+ -S, --ancestor-conflict-tag=<value> [default: BASE] string used to tag ancestor version in conflicts
178
+ -X, --local-conflict-tag=<value> [default: LOCAL] string used to tag local version in conflicts
179
+ -Y, --other-conflict-tag=<value> [default: REMOTE] string used to tag other version in conflicts
180
+
181
+ GLOBAL FLAGS
182
+ --flags-dir=<value> Import flag values from a directory.
183
+ --json Format output as json.
184
+
185
+ DESCRIPTION
186
+ Runs the merge driver for the specified files.
187
+
188
+ Runs the merge driver for the specified files, handling the merge conflict resolution using Salesforce-specific merge
189
+ strategies. This command is typically called automatically by Git when a merge conflict is detected.
190
+
191
+ EXAMPLES
192
+ Run the merge driver for conflicting files:
193
+
194
+ $ sf git merge driver run --ancestor-file=<value> --local-file=<value> --other-file=<value> \
195
+ --output-file=<value>
196
+
197
+ Where:
198
+ - ancestor-file is the path to the common ancestor version of the file
199
+ - local-file is the path to our version of the file
200
+ - other-file is the path to their version of the file
201
+ - output-file is the path to the file where the merged content will be written
202
+ ```
203
+
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)_
205
+
206
+ ## `sf git merge driver uninstall`
207
+
208
+ Uninstalls the local git merge driver for the given org and branch.
209
+
210
+ ```
211
+ USAGE
212
+ $ sf git merge driver uninstall [--json] [--flags-dir <value>]
213
+
214
+ GLOBAL FLAGS
215
+ --flags-dir=<value> Import flag values from a directory.
216
+ --json Format output as json.
217
+
218
+ DESCRIPTION
219
+ Uninstalls the local git merge driver for the given org and branch.
220
+
221
+ Uninstalls the local git merge driver for the given org and branch, by removing the merge driver content in the
222
+ `.git/info/attributes` files in the project, deleting the merge driver configuration from the `.git/config` of the
223
+ project, and removing the installed binary from the node_modules/.bin directory.
224
+
225
+ EXAMPLES
226
+ Uninstall the driver for a given project:
227
+
228
+ $ sf git merge driver uninstall
229
+ ```
230
+
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)_
232
+ <!-- commandsstop -->
128
233
  ## Changelog
129
234
 
130
235
  [changelog.md](CHANGELOG.md) is available for consultation.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "sf-git-merge-driver",
3
- "version": "1.2.1-dev-137.18569178375-1",
3
+ "version": "1.2.1-dev-137.18569268997-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.18569178375-1",
9
+ "version": "1.2.1-dev-137.18569268997-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.18569178375-1"
287
+ "version": "1.2.1-dev-137.18569268997-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.18569178375-1",
4
+ "version": "1.2.1-dev-137.18569268997-1",
5
5
  "exports": "./lib/driver/MergeDriver.js",
6
6
  "type": "module",
7
7
  "author": "Sébastien Colladon (colladonsebastien@gmail.com)",