commit 417cb0574f8a96ca68bb09be10a689fd06a5c205
from: Stefan Sperling If merge conflicts occur the rebase operation is interrupted
- and may be continued once conflicts have been resolved. Alternatively,
- the rebase operation may be aborted which will leave
- branch unmodified and the work tree switched back
- to its original branch.
blob - 80dbe0572243a7e5e0104f9480aae80ad14ac755
blob + 55ab265e049976b4ad3cbdc014886408a2dcf896
--- got-worktree.5.html
+++ got-worktree.5.html
@@ -192,7 +192,7 @@
-
September 15, 2021
+ October 3, 2021
OpenBSD 7.0
blob - 60478589975c5a3b96538c4b6aa07b59b8bbe784
blob + e2e3e3fd03ceb92bdc40b93df90855e7e3fa8d06
--- got.1.html
+++ got.1.html
@@ -1451,7 +1451,7 @@
-
September 15, 2021
+ October 3, 2021
OpenBSD 7.0
d
- file's deletion was obstructed by local modifications
+ file's deletion was prevented by local modifications
A
@@ -1508,7 +1508,7 @@
d
- file's deletion was obstructed by local modifications
+ file's deletion was prevented by local modifications
A
@@ -1593,7 +1593,7 @@
d
- file's deletion was obstructed by local modifications
+ file's deletion was prevented by local modifications
A
@@ -1609,10 +1609,16 @@
If a merge conflict is resolved in a way which renders the merged change into a no-op change, the corresponding commit will be elided when the rebase operation continues.
@@ -1682,10 +1688,10 @@rebase
.histedit
[-a
] [-c
]
- [-f
] [-F
- histedit-script] [-m
]
- [-l
] [-X
]
- [branch]-e
] [-f
]
+ [-F
histedit-script]
+ [-m
] [-l
]
+ [-X
] [branch]
Before starting a histedit
operation
@@ -1772,7 +1778,7 @@
If merge conflicts occur the histedit operation is interrupted - and may be continued once conflicts have been resolved. Alternatively, - the histedit operation may be aborted which will leave the work tree - switched back to its original branch.
+ and may be continued once conflicts have been resolved. If any files + with destined changes are found to be missing or unversioned, or if + files could not be deleted due to differences in deleted content, the + histedit operation will be interrupted to prevent potentially incomplete + changes from being committed to the repository without user + intervention. The work tree may be modified as desired and the histedit + operation can be continued once the changes present in the work tree are + considered complete. Alternatively, the histedit operation may be + aborted which will leave the work tree switched back to its original + branch.If a merge conflict is resolved in a way which renders the merged change into a no-op change, the corresponding commit will be elided when the histedit operation continues.
@@ -1823,6 +1836,13 @@-c
-e
edit
command for all commits. The
+ -e
option can only be used when starting a new
+ histedit operation. If this option is used, no other command-line
+ arguments are allowed.-f
ig
integrate
.merge
+ [-a
] [-c
]
+ [-n
] [branch]got rebase
should be
+ preferred over got merge
. However, even strictly
+ linear projects may require merge commits in order to merge in new
+ versions of third-party code stored on vendor branches created with
+ got import
.
+ Merge commits are commits based on multiple parent commits.
+ The tip commit of the work tree's current branch, which must be set with
+ got update -b
before starting the
+ merge
operation, will be used as the first
+ parent. The tip commit of the specified branch
+ will be used as the second parent.
No ancestral relationship between the two branches is + required. If the two branches have already been merged previously, only + new changes will be merged.
+It is not possible to create merge commits with more than two + parents. If more than one branch needs to be merged, then multiple merge + commits with two parents each can be created in sequence.
+While merging changes found on the + branch into the work tree, show the status of each + affected file, using the following status codes:
+G | +file was merged | +
C | +file was merged and conflicts occurred during merge | +
! | +changes destined for a missing file were not merged | +
D | +file was deleted | +
d | +file's deletion was prevented by local modifications | +
A | +new file was added | +
~ | +changes destined for a non-regular file were not merged | +
? | +changes destined for an unversioned file were not merged | +
If merge conflicts occur, the merge operation is interrupted + and conflicts must be resolved before the merge operation can continue. + If any files with destined changes are found to be missing or + unversioned, or if files could not be deleted due to differences in + deleted content, the merge operation will be interrupted to prevent + potentially incomplete changes from being committed to the repository + without user intervention. The work tree may be modified as desired and + the merge can be continued once the changes present in the work tree are + considered complete. Alternatively, the merge operation may be aborted + which will leave the work tree's current branch unmodified.
+If a merge conflict is resolved in a way which renders all + merged changes into no-op changes, the merge operation cannot continue + and must be aborted.
+got merge
will refuse to run if
+ certain preconditions are not met. If history of the
+ branch is based on the work tree's current branch,
+ then no merge commit can be created and got
+ integrate
may be used to integrate the
+ branch instead. If the work tree is not yet fully
+ updated to the tip commit of its branch, then the work tree must first
+ be updated with got update
. If the work tree
+ contains multiple base commits it must first be updated to a single base
+ commit with got update
. If changes have been
+ staged with got stage
, these changes must first
+ be committed with got commit
or unstaged with
+ got unstage
. If the work tree contains local
+ changes, these changes must first be committed with got
+ commit
or reverted with got revert
. If
+ the branch contains changes to files outside of
+ the work tree's path prefix, the work tree cannot be used to merge this
+ branch.
The got update
, got
+ commit
, got rebase
, got
+ histedit
, got integrate
, and
+ got stage
commands will refuse to run while a
+ merge operation is in progress. Other commands which manipulate the work
+ tree may be used for conflict resolution purposes.
The options for got merge
are as
+ follows:
-a
-c
-n
got merge -c
.
+ Alternatively, the merge may be aborted with got
+ merge -a
.mg
merge
.stage
[-l
] [-p
]
[-F
response-script]
@@ -2050,7 +2185,7 @@
The options for got cat
are as
follows:
-c
+ -c
commitgot
will not automatically merge changes to new
locations and git(1) will usually produce better
@@ -2499,7 +2634,7 @@
September 15, 2021 | +October 3, 2021 | OpenBSD 7.0 |
September 15, 2021 | +October 3, 2021 | OpenBSD 7.0 |
September 15, 2021 | +October 3, 2021 | OpenBSD 7.0 |
September 15, 2021 | +October 3, 2021 | OpenBSD 7.0 |
September 15, 2021 | +October 3, 2021 | OpenBSD 7.0 |
September 15, 2021 | +October 3, 2021 | OpenBSD 7.0 |