From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: git@vger.kernel.org
Subject: Re: Do "git add" as a builtin
Date: Thu, 18 May 2006 09:50:00 -0700 [thread overview]
Message-ID: <7vzmhfnupz.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0605180929450.10823@g5.osdl.org> (Linus Torvalds's message of "Thu, 18 May 2006 09:35:58 -0700 (PDT)")
Linus Torvalds <torvalds@osdl.org> writes:
> Thinking some more about it, I think I personally much prefer this.
I like this much better than the old (pre-builtin) behaviour.
> Especially as a quick look-through seems to say that there's actually a
> path through git-update-index too that allows a unverified filename to get
> into the index (the new "--unresolve" thing also misses the need to verify
> the path).
Perhaps, but unresolve splits an entry that is available from
the heads being merged, so it would use unverified filename to
try finding the ents from trees, but get_tree_entry() would not
find one, so I think we are safe already. Nevertheless, I think
your change makes things more strict and safer.
I doubt this would break people's scripts. If they were relying
on the old behaviour, that means they threw real paths and
garbage at update-index and relied on it to sift them apart,
which indicates they were buggy to begin with anyway.
next prev parent reply other threads:[~2006-05-18 16:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-17 16:33 Do "git add" as a builtin Linus Torvalds
2006-05-17 19:06 ` Junio C Hamano
2006-05-17 20:23 ` Linus Torvalds
2006-05-18 8:13 ` Junio C Hamano
2006-05-18 8:34 ` Junio C Hamano
2006-05-18 8:52 ` [WARNING] Please be careful when using "git add" from "next" branch Junio C Hamano
2006-05-19 6:28 ` FIXED: " Junio C Hamano
2006-05-18 15:26 ` Do "git add" as a builtin Linus Torvalds
2006-05-18 16:25 ` Linus Torvalds
2006-05-18 16:35 ` Linus Torvalds
2006-05-18 16:50 ` Junio C Hamano [this message]
2006-05-18 17:22 ` Linus Torvalds
2006-05-18 15:06 ` Linus Torvalds
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=7vzmhfnupz.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.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