Re: [PATCH v2] Fix fetch/pull when run without --update-head-ok

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Daniel Barkalow
Date: Monday, October 13, 2008 - 1:05 pm

On Mon, 13 Oct 2008, Johannes Schindelin wrote:


Is it, in fact, okay to fetch into the current branch if it's "yet to be 
born"? I feel like it shouldn't be, since you'll get exactly the same 
problem that you would if the branch already existed: the index reflects 
the previous state (in this case, it's empty), so git will show that 
you've staged removing all of the files, right? So this would make the 
check for --update-head-ok more strict than before, but I think the 
behavior change is correct.

	-Daniel
*This .sig left intentionally blank*
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] fetch: refuse to fetch into the current branch in ..., Johannes Schindelin, (Sat Oct 11, 4:38 am)
Re: [PATCH] fetch: refuse to fetch into the current branch ..., Johannes Schindelin, (Mon Oct 13, 2:28 am)
[PATCH v2] Fix fetch/pull when run without --update-head-ok, Johannes Schindelin, (Mon Oct 13, 2:36 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Mon Oct 13, 10:57 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Mon Oct 13, 11:12 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Daniel Barkalow, (Mon Oct 13, 1:05 pm)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Tue Oct 14, 2:49 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Tue Oct 14, 9:15 am)
Re: [PATCH v2] Fix fetch/pull when run without --update-he ..., Johannes Schindelin, (Tue Oct 14, 9:17 am)