Re: [PATCH] Teach 'git apply' to look at $GIT_DIR/config

From: Junio C Hamano <junkio@cox.net>
Date: 2007-02-18 13:10:28
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> On Sat, 17 Feb 2007, Junio C Hamano wrote:
>
>> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
>> 
>> >> I strongly disagree from my recent day-job experience. [Explains a 
>> >> convincing use case in favour of cd-up.]
>> >
>> > Hmm. I have to think about that. But a consequence of what you suggest 
>> > would be to disallow git-apply outside of a repository, because then you 
>> > would introduce _another_ inconsistency (git-apply without --index would 
>> > behave differently when inside a repo than when outside of one).
>> 
>> Why?  git-apply outside is like 'patch' isn't it?
>
> So, why shouldn't it be the same inside? That's the inconsistency I am 
> alluding to.

It appears that you are saying we cannot make it consistent in
both ways, and you are probably right.

I think git should cater first to git users who use git in git
repositories, which means consistency inside a git repository
between with --index and without is more important.

We can certainly teach 'git apply' without --index/--cache a new
"stay where you are" option to behave like patch (but do that
only without --index/--cache) inside a git repository for
special cases.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Feb 18 13:10:45 2007

This archive was generated by hypermail 2.1.8 : 2007-02-18 13:12:43 EST