Re: [PATCH v2 08/11] fast-export: add --reference-excluded-parents option

2018-11-14 Thread Elijah Newren
On Wed, Nov 14, 2018 at 11:28 AM SZEDER Gábor wrote: > > On Tue, Nov 13, 2018 at 04:25:57PM -0800, Elijah Newren wrote: > > diff --git a/builtin/fast-export.c b/builtin/fast-export.c > > index 2fef00436b..3cc98c31ad 100644 > > --- a/builtin/fast-export.c > > +++ b/builtin/fast-export.c > > @@ -37,

Re: [PATCH v2 08/11] fast-export: add --reference-excluded-parents option

2018-11-14 Thread SZEDER Gábor
On Tue, Nov 13, 2018 at 04:25:57PM -0800, Elijah Newren wrote: > diff --git a/builtin/fast-export.c b/builtin/fast-export.c > index 2fef00436b..3cc98c31ad 100644 > --- a/builtin/fast-export.c > +++ b/builtin/fast-export.c > @@ -37,6 +37,7 @@ static int fake_missing_tagger; > static int use_done_fe

[PATCH v2 08/11] fast-export: add --reference-excluded-parents option

2018-11-13 Thread Elijah Newren
git filter-branch has a nifty feature allowing you to rewrite, e.g. just the last 8 commits of a linear history git filter-branch $OPTIONS HEAD~8..HEAD If you try the same with git fast-export, you instead get a history of only 8 commits, with HEAD~7 being rewritten into a root commit. There ar