git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Gal <gal@uci.edu>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] New option (-H) for rpush/rpull to update HEAD
Date: Sun, 24 Apr 2005 21:55:46 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.58.0504242149330.5553@sam.ics.uci.edu> (raw)
In-Reply-To: <Pine.LNX.4.21.0504250041500.30848-100000@iabervon.org>


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
> 

  reply	other threads:[~2005-04-25  4:51 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200504210422.j3L4Mo8L021495@hera.kernel.org>
     [not found] ` <1114079347.6277.29.camel@laptopd505.fenrus.org>
2005-04-21 12:23   ` Git-commits mailing list feed David Woodhouse
     [not found] ` <42674724.90005@ppp0.net>
     [not found]   ` <20050422002922.GB6829@kroah.com>
     [not found]     ` <426A4669.7080500@ppp0.net>
     [not found]       ` <1114266083.3419.40.camel@localhost.localdomain>
     [not found]         ` <426A5BFC.1020507@ppp0.net>
     [not found]           ` <1114266907.3419.43.camel@localhost.localdomain>
2005-04-23 17:31             ` Linus Torvalds
2005-04-23 17:45               ` Linus Torvalds
2005-04-23 17:50               ` Fabian Franz
2005-04-23 23:16                 ` Andreas Gal
2005-04-23 17:50               ` Sean
2005-04-23 19:02                 ` Thomas Glanzmann
2005-04-23 18:14                   ` Sean
2005-04-23 19:34                 ` Linus Torvalds
2005-04-23 17:54               ` Thomas Glanzmann
2005-04-23 18:30                 ` Linus Torvalds
2005-04-23 18:06                   ` Sean
2005-04-23 19:38                     ` Linus Torvalds
2005-04-23 18:44                       ` Sean
2005-04-23 19:58                         ` Linus Torvalds
2005-04-23 19:57                       ` Junio C Hamano
2005-04-23 20:23                         ` Linus Torvalds
2005-04-23 20:24                         ` Junio C Hamano
2005-04-24 23:25                       ` Paul Jakma
2005-04-24 23:57                         ` Paul Jakma
2005-04-25  1:01                         ` David A. Wheeler
2005-04-25  1:35                           ` Paul Jakma
2005-04-25  2:13                             ` David A. Wheeler
2005-04-25  3:03                               ` Paul Jakma
2005-04-25  3:08                                 ` Paul Jakma
2005-04-25  1:50                           ` Linus Torvalds
2005-04-25  2:17                             ` Fabian Franz
2005-04-25  2:39                               ` Andreas Gal
2005-04-25  2:44                               ` Linus Torvalds
2005-04-25  3:32                                 ` David A. Wheeler
2005-04-25  9:31                                   ` David Greaves
2005-04-25  3:08                             ` David A. Wheeler
2005-04-25  3:24                               ` Paul Jakma
2005-04-25  3:40                                 ` Paul Jakma
2005-04-25  3:47                                   ` Paul Jakma
2005-04-25  4:39                                     ` [PATCH] New option (-H) for rpush/rpull to update HEAD Andreas Gal
2005-04-25  4:47                                       ` Daniel Barkalow
2005-04-25  4:55                                         ` Andreas Gal [this message]
2005-04-25  5:18                                           ` Daniel Barkalow
2005-04-25  2:34                           ` Git-commits mailing list feed Matt Domsch
2005-04-25  2:43                             ` Jan Harkes
2005-04-23 18:39                   ` Thomas Glanzmann
2005-04-23 18:44                     ` Thomas Glanzmann
2005-04-23 18:46                   ` Jan Harkes
2005-04-23 20:01                     ` Linus Torvalds
2005-04-23 18:54                   ` Junio C Hamano
2005-04-23 18:34               ` Jan Harkes
2005-04-23 19:30                 ` Linus Torvalds
2005-04-23 20:49                   ` Jan Harkes
2005-04-23 21:28                     ` Git transfer protocols (was: Re: Git-commits mailing list feed) Mike Taht
2005-04-23 22:22                       ` Jan Harkes
2005-04-23 23:29                     ` Git-commits mailing list feed Linus Torvalds
2005-04-23 19:30               ` Suggestion: generalize signed tags into "assertion objects" David A. Wheeler
2005-04-23 20:15               ` Git-commits mailing list feed Jeff Garzik
2005-04-25  1:26               ` David Woodhouse

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.58.0504242149330.5553@sam.ics.uci.edu \
    --to=gal@uci.edu \
    --cc=barkalow@iabervon.org \
    --cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).