From: Linus Torvalds <torvalds@osdl.org>
To: Junio C Hamano <junkio@cox.net>
Cc: Marco Costalba <mcostalba@gmail.com>, git@vger.kernel.org
Subject: Re: Possible --remove-empty bug
Date: Mon, 13 Mar 2006 11:03:32 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0603131058270.3618@g5.osdl.org> (raw)
In-Reply-To: <7v4q22ucio.fsf@assigned-by-dhcp.cox.net>
On Sun, 12 Mar 2006, Junio C Hamano wrote:
>
> It removes the grandparents from the parent, and leaves the
> parent still interesting. As a result, in your example:
>
> ... if you have
>
> a
> / \
> b c
> \ /
> d
>
> where the pathname disappeared in "b"...
>
> we would get this world view:
>
> a
> / \
> b c
> /
> d
Yeah, that's correct. That way you still see all the history that is
relevant to the tree that became empty.
However, to be honest, the only reason to ever use --remove-empty is for
rename detection, and Frederik's approach of doing that through the
library interface directly is actually a much superior option. So we might
as well drop the compilcation of --remove-empty entirely, unless somebody
has already started using it.
The _real_ optimization would be to make the pathname based pruning be
done incrementally instead of having to build up the whole tree. That
would be much more important than the --remove-empty stuff from a
usability standpoint. I'm absolutely sure it's possible, and I simplified
the code earlier so that it should be simpler to do, but every time I
actually look at the code I get confused again.
Linus
next prev parent reply other threads:[~2006-03-13 19:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-12 14:12 Possible --remove-empty bug Marco Costalba
2006-03-12 21:31 ` Junio C Hamano
2006-03-12 22:54 ` Linus Torvalds
2006-03-13 1:08 ` Junio C Hamano
2006-03-13 5:41 ` Junio C Hamano
2006-03-13 19:03 ` Linus Torvalds [this message]
2006-03-17 10:57 ` Marco Costalba
2006-03-18 6:40 ` Junio C Hamano
2006-03-18 7:36 ` Marco Costalba
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=Pine.LNX.4.64.0603131058270.3618@g5.osdl.org \
--to=torvalds@osdl.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=mcostalba@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).