[flang] Add script to flatten git history for llvm monorepo submission (flang-compile...
authorPeter Waller <peter.waller@arm.com>
Wed, 26 Feb 2020 19:50:43 +0000 (19:50 +0000)
committerGitHub <noreply@github.com>
Wed, 26 Feb 2020 19:50:43 +0000 (11:50 -0800)
commit42cc44fbc8dc6c66d3e10a2d904133ffcdde3762
treec606115787bc1cddf49dc592bf8b0710735a1b9c
parentdec83a5e10530f8081522c7e4a25669e7e6b2701
[flang] Add script to flatten git history for llvm monorepo submission (flang-compiler/f18#854)

This script, when run on a checkout of the f18 repository, takes the
current origin/master and makes a branch called "new" with a rewritten
history;

The "new" branch has a flat git history (that is, a series of commits
with only one parent). Flattening is done for merge commits by taking
the content of the commit as it is at the merge commit.

Original-commit: flang-compiler/f18@d9871fa9eb2304c4761a4a818187553396bb8924
Reviewed-on: https://github.com/flang-compiler/f18/pull/854
flang/flatten.cpp [new file with mode: 0644]