Why? Updating HEAD right after writing the commit id and all its children to the object directory seems reasonable and prevents race conditions when the remote repository is shared via HTTP etc. rpull, in contrast, should never touch HEAD, because conflicts might force a merge that will set HEAD to something else. For the pull case we should let the script(tm) do that. Its local anyway. rpush is different because the script(tm) has to do some SSH magic to update HEAD. I will gladly supply a patch to fix what to read/write once you have figured out the final layout, but I really need a working rpush _NOW_ ;). Andreas On Mon, 25 Apr 2005, Daniel Barkalow wrote: > On Sun, 24 Apr 2005, Andreas Gal wrote: > > > This patch adds a new option -H to rpush/rpull to update the > > HEAD pointer when pushing a new release to a remote repository. > > Updating the head pointer (in either direction) should be instead of > specifying a commit, and should also apply to http-pull. I've also > suggested some changes to the organization of HEAD and related items, so > the logical things to read and write are likely to change soon. > > -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 > - 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.htmlReceived on Mon Apr 25 14:56:04 2005
This archive was generated by hypermail 2.1.8 : 2005-04-25 14:56:05 EST