Thread (4 messages) flat view 4 messages, 4 authors, 2021-02-20

Re: Considering merge --dry-run to foresee conflicts ahead of time

From: Konstantin Tokarev <hidden>
Date: 2021-02-17 18:42:26


17.02.2021, 20:25, "Alireza" [off-list ref]:
I have a half baked alias for this and it proved to be extremely
useful even in this state.
check = "!f() { BRANCH=${1:-HEAD}; BASE=${2:-origin/master}; git
merge-tree $(git merge-base $BRANCH $BASE) $BRANCH $BASE | sed -n
\"/+<<<<<<< .our/,/+>>>>>>> .their/p\"; }; f"
Of course with large conflicts it gets less useful. Getting only file
names from the patch isn't straightforward either.

So my question is what are the downsides to introducing a `merge
--dry-run` option and what would it look like?
As a git user, I would very much welcome this addition, and similar for cherry-pick,
provided they don't modify any files in working copy.


-- 
Regards,
Konstantin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help