From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Ezequiel Gallina Newsgroups: gmane.emacs.devel Subject: Re: git push/pull Date: Sun, 6 Dec 2009 18:13:34 -0300 Message-ID: <9de1a5ef0912061313s633ea9f4s42f593d75a5d07dc@mail.gmail.com> References: <9de1a5ef0912050009i59707986gb177505e04975e1b@mail.gmail.com> <9de1a5ef0912061121l2e4645c7q6ff334d57e4ec3bf@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1260134030 11002 80.91.229.12 (6 Dec 2009 21:13:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Dec 2009 21:13:50 +0000 (UTC) Cc: Stefan Monnier , Emacs-Devel devel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 06 22:13:43 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NHOQH-0000Qz-7C for ged-emacs-devel@m.gmane.org; Sun, 06 Dec 2009 22:13:41 +0100 Original-Received: from localhost ([127.0.0.1]:38367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHOQG-0006ZC-M1 for ged-emacs-devel@m.gmane.org; Sun, 06 Dec 2009 16:13:40 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHOQC-0006Yy-DK for emacs-devel@gnu.org; Sun, 06 Dec 2009 16:13:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHOQB-0006Yh-Tj for emacs-devel@gnu.org; Sun, 06 Dec 2009 16:13:36 -0500 Original-Received: from [199.232.76.173] (port=39415 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHOQB-0006Ye-PB for emacs-devel@gnu.org; Sun, 06 Dec 2009 16:13:35 -0500 Original-Received: from ey-out-1920.google.com ([74.125.78.148]:33632) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHOQB-0001yt-LF for emacs-devel@gnu.org; Sun, 06 Dec 2009 16:13:35 -0500 Original-Received: by ey-out-1920.google.com with SMTP id 5so231556eyb.2 for ; Sun, 06 Dec 2009 13:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Oz3NZDL7rgJM8aFHGaZu9AIg6FVEYsZsWoN9OgjQtx8=; b=TOlIW4FUtzYrza+hxNnKgheBlnTldsICQOlksMLY/SOzryonIentkjnL9XmY7qglG3 n73UFNP9v7g+Ixm0hKo2elyXtkVAUJrBDa9sookLpc8RISoAWp0QWHxxKnODRlvtwyed ghpROq2EWbfXX3S35woLcYpw145RfI1jG7J8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mLW9LBPi6QJhi5aG+T5WWqfvMZygtX7EA6FT7vtyQiS0Lv41bdz0w4AE5/Wcwoj/cc H48rg7WN2USNP9YI3CxEkixR6QGIhsy6xwofJgQIKuiEReUq8HErTxXcOIjz1cwqKRHL KkOlYPjTr1SJ39z6kMnGQNn38ZB9bnLM8uK9c= Original-Received: by 10.216.90.13 with SMTP id d13mr2010715wef.130.1260134014381; Sun, 06 Dec 2009 13:13:34 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:118346 Archived-At: 2009/12/6 Andreas Schwab : > Fabian Ezequiel Gallina writes: > >> + =A0 =A0 (setq available-repos >> + =A0 =A0 =A0 =A0 =A0 (let ((table (list "."))) >> + =A0 =A0 =A0 =A0 =A0 =A0 (with-temp-buffer >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 (vc-git-command t nil nil "for-each-ref" "= --format=3D%(refname)") >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 (goto-char (point-min)) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 (while (re-search-forward "^refs/remotes/\= \([^/]+\\).*$" nil t) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (push (match-string 1) table))) >> + =A0 =A0 =A0 =A0 =A0 =A0 table)) > > This is still wrong. > > Andreas. > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 =A001D3 44D5 214B 8276 4= ED5 > "And now for something completely different." > Andreas, I'm not sure about that. That completion part is for the argument in a basic git push/pull command. AFAIK repository could be remote name and a remote name cannot contain "/"[0], this is different on the refspec part which can be have the form /. After I saw you previous email stating this was wrong I took a deeper look at the completion and at the moment the completions you have available in the minibuffer are the same you would have in the terminal. Anyways with this I'm not saying it cannot be improved. [0] http://repo.or.cz/w/git.git/blob/master:/remote.c#l671 Regards, --=20 Fabi=E1n E. Gallina http://www.from-the-cloud.com