From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Yann Dirson <ydirson@altern.org>, git@vger.kernel.org
Subject: Re: [PATCH] [BUG] Add a test to check git-prune does not throw away revs hidden by a graft.
Date: Fri, 19 May 2006 15:22:13 -0700 [thread overview]
Message-ID: <7v4pzlirje.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: Pine.LNX.4.64.0605191159520.10823@g5.osdl.org
Linus Torvalds <torvalds@osdl.org> writes:
> On Fri, 19 May 2006, Yann Dirson wrote:
>
>> On Thu, May 18, 2006 at 03:53:36PM -0700, Junio C Hamano wrote:
>> > Yann Dirson <ydirson@altern.org> writes:
>> >
>> > > To make my point maybe more clear: if someone really wants to make a
>> > > graft permanent, wouldn't some history rewriting ... be the
>> > > way to go,...
>> >
>> > Yes.
>>
>> So if temporary usage is a typical use for grafts, don't we want to
>> protect people using them from pruning ? I got no feedback to my
>> suggestion of changing the default behaviour, even to say it was a bad
>> idea :)
I just gave a terse "Yes" because I agree with Yann that if
really a permanent history rewriting is needed it should be done
by history rewriting not with graft (I do not necessarily
encourage people to rewrite history but if somebody wants to,
that is).
> We _could_ decide that fsck should just follow the "real parents" and the
> grafts _both_. That's the safe thing to do by default. Possibly with a
> flag to say "prefer one over the other", or even a "prefer which-ever
> exists".
I agree with everything Linus said about the current grafts
usage. My vote for fsck is to make it default to follow both by
default for safety, and perhaps an optional --ignore-graft
flag.
next prev parent reply other threads:[~2006-05-19 22:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-18 21:35 [PATCH] [BUG] Add a test to check git-prune does not throw away revs hidden by a graft Yann Dirson
2006-05-18 21:37 ` Linus Torvalds
2006-05-18 21:46 ` Junio C Hamano
2006-05-18 22:01 ` Linus Torvalds
2006-05-18 22:25 ` Junio C Hamano
2006-05-18 22:20 ` Yann Dirson
2006-05-18 22:36 ` Junio C Hamano
2006-05-18 22:52 ` Yann Dirson
2006-05-18 22:53 ` Junio C Hamano
2006-05-19 18:55 ` Yann Dirson
2006-05-19 19:00 ` Jakub Narebski
2006-05-19 19:02 ` Linus Torvalds
2006-05-19 20:25 ` Yann Dirson
2006-05-19 20:45 ` Linus Torvalds
2006-05-19 22:22 ` Junio C Hamano [this message]
2006-05-19 22:26 ` [PATCH] [BUG] Add a test to check git-prune does not throw awayrevs " David Lang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v4pzlirje.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=ydirson@altern.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox