All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] (preview) Renaming push.
Date: Wed, 03 Aug 2005 18:02:51 -0700	[thread overview]
Message-ID: <7vmzny5xac.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0508031641270.3258@g5.osdl.org> (Linus Torvalds's message of "Wed, 3 Aug 2005 16:48:13 -0700 (PDT)")

Well, I pushed it out, although I do agree that we should be
able to give anything get_sha()-able on the source side of the
push.  Probably a revised version should have the following
semantics:

    $ git-send-pack [--all] <remote> [<ref>...]

 - When no <ref> is specified:

   - with '--all', it is the same as specifying the full refs/*
     path for all local refs;

   - without '--all', it is the same as specifying the full
     refs/* path for refs that exist on both ends;

 - When one or more <ref>s are specified:

   - a single token <ref> (i.e. no colon) must be a pattern that
     tail-matches refs/* path for an existing local ref.  It is
     an error for the pattern to match no local ref, or more
     than one local refs.  The matching ref is pushed to the
     remote end under the same name.

   - <src>:<dst> can have different cases.  <src> is first tried
     as the tail-matching pattern for refs/* path.

     - If more than one matches are found, it is an error.

     - If one match is found, <dst> must either match no remote
       ref and start with "refs/", or match exactly one remote
       ref.  That remote ref is updated with the sha1 value
       obtained by the <src> sha1.

     - If no match is found, it is given to get_extended_sha1();
       it is an error if get_extended_sha1() does not find an
       object name.  If it succeeds, <dst> must either match
       no remote ref and start with "refs/" or match exactly
       one remote ref.  That remote ref is updated with the sha1
       value.

  parent reply	other threads:[~2005-08-04  1:08 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 23:10 Users of git-check-files? Johannes Schindelin
2005-08-03  2:43 ` Linus Torvalds
2005-08-03  6:17   ` Junio C Hamano
2005-08-03 14:21     ` Johannes Schindelin
2005-08-03 18:00       ` Linus Torvalds
2005-08-03 22:09         ` Johannes Schindelin
2005-08-03 15:09     ` Linus Torvalds
2005-08-03 15:51       ` Junio C Hamano
2005-08-03 16:17         ` Linus Torvalds
2005-08-03 16:36           ` Junio C Hamano
2005-08-03 16:45             ` Linus Torvalds
2005-08-03 16:50               ` Johannes Schindelin
2005-08-03 17:08                 ` Josef Weidendorfer
2005-08-03 17:30                   ` Junio C Hamano
2005-08-03 17:46                   ` Josef Weidendorfer
2005-08-03 18:08                   ` Linus Torvalds
2005-08-03 23:25                     ` [PATCH] (preview) Renaming push Junio C Hamano
2005-08-03 23:48                       ` Linus Torvalds
2005-08-04  0:05                         ` Junio C Hamano
2005-08-04  0:13                           ` Linus Torvalds
2005-08-04  1:02                         ` Junio C Hamano [this message]
2005-08-04  5:26                         ` Junio C Hamano
2005-08-04  5:42                           ` Linus Torvalds
2005-08-04  8:09                             ` Junio C Hamano
2005-08-04  9:34                             ` [PATCH] Teach rev-list since..til notation Junio C Hamano
2005-08-03 18:02                 ` Users of git-check-files? Linus Torvalds
2005-08-03 17:02               ` Junio C Hamano
2005-08-03 17:23                 ` Linus Torvalds
2005-08-03 17:37                   ` Junio C Hamano
2005-08-03 17:46                     ` Josef Weidendorfer
2005-08-03 18:10                       ` Linus Torvalds
2005-08-03 17:48                     ` Linus Torvalds
2005-08-03 18:07                       ` Junio C Hamano
2005-08-03 18:31                         ` Josef Weidendorfer
2005-08-03 16:46             ` Johannes Schindelin
2005-08-04 20:59       ` Junio C Hamano
2005-08-04 21:10         ` Johannes Schindelin

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=7vmzny5xac.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.