[PATCH] D53414: Add instructions for migrating branches from one git repository to another.

Fedor Sergeev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 23 02:08:48 PDT 2018


fedor.sergeev added inline comments.


================
Comment at: llvm/docs/Proposals/GitHubMove.rst:874-875
+  # my-branch that are not in origin/master.
+  $ diff <(git log --pretty=%H --merges origin/master | sort) \
+         <(git log --pretty=%H --merges my-branch | sort) | grep '^>'
+
----------------
this can be done shorter and faster:
git log --oneline --merges origin/master..mybranch


================
Comment at: llvm/docs/Proposals/GitHubMove.rst:906
+  $ git checkout -b my-branch <new-base-commit>
+  $ git am /tmp/my-branch-patches/*
+
----------------
Why not rebase --onto instead of format-patch/am ?
Never used git-am for a bulk set of patches but my feeling is that rebase would be a bit more "controllable" in a case when something wrong happens with the patches...
(also it has a benifit of not requiring to put patches somewhere into /tmp :) )


https://reviews.llvm.org/D53414





More information about the llvm-commits mailing list